Class LocalFileSystem
java.lang.Object
org.apache.commons.vfs2.provider.AbstractVfsComponent
org.apache.commons.vfs2.provider.AbstractFileSystem
org.apache.commons.vfs2.provider.local.LocalFileSystem
- All Implemented Interfaces:
Closeable, AutoCloseable, FileSystem, VfsComponent
A local file system.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCapabilities(Collection<Capability> caps) Returns the capabilities of this file system.protected FileObjectcreateFile(AbstractFileName name) Creates a file object.protected FiledoReplicateFile(FileObject fileObject, FileSelector selector) Creates a temporary local copy of a file and its descendants.Methods inherited from class AbstractFileSystem
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doCloseCommunicationLink, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttributeMethods inherited from class AbstractVfsComponent
getContext, getLogger, setContext, setLogger
-
Field Details
-
rootFile
-
-
Constructor Details
-
LocalFileSystem
-
-
Method Details
-
addCapabilities
Returns the capabilities of this file system.- Specified by:
addCapabilitiesin classAbstractFileSystem- Parameters:
caps- collections of Capabilities, can be immutable.
-
createFile
Creates a file object.- Specified by:
createFilein classAbstractFileSystem- Parameters:
name- name referencing the new file.- Returns:
- new created FileObject.
- Throws:
FileSystemException
-
doReplicateFile
Creates a temporary local copy of a file and its descendants.- Overrides:
doReplicateFilein classAbstractFileSystem- Parameters:
fileObject- the start of the tree.selector- selection what to do with childs.- Returns:
- replicated root file.
- Throws:
Exception- any Exception is wrapped as FileSystemException.
-