public class LocalFileSystem extends AbstractFileSystem
Constructor and Description |
---|
LocalFileSystem(FileName rootFileName,
String rootFile,
FileSystemOptions fileSystemOptions)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addCapabilities(Collection<Capability> caps)
Returns the capabilities of this file system.
|
protected FileObject |
createFile(AbstractFileName name)
Creates a file object.
|
protected File |
doReplicateFile(FileObject fileObject,
FileSelector selector)
Creates a temporary local copy of a file and its descendants.
|
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, setAttribute
getContext, getLogger, setContext, setLogger
public LocalFileSystem(FileName rootFileName, String rootFile, FileSystemOptions fileSystemOptions)
rootFileName
- The root file name of this file system.rootFile
- The root of this file system.fileSystemOptions
- Options to build this file system.protected void addCapabilities(Collection<Capability> caps)
addCapabilities
in class AbstractFileSystem
caps
- collections of Capabilities, can be immutable.protected FileObject createFile(AbstractFileName name) throws FileSystemException
createFile
in class AbstractFileSystem
name
- name referencing the new file.FileSystemException
protected File doReplicateFile(FileObject fileObject, FileSelector selector) throws Exception
doReplicateFile
in class AbstractFileSystem
fileObject
- the start of the tree.selector
- selection what to do with children.Exception
- any Exception is wrapped as FileSystemException.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.