Modifier and Type | Field and Description |
---|---|
static FileObject[] |
FileObject.EMPTY_ARRAY
An empty immutable
FileObject array. |
Modifier and Type | Method and Description |
---|---|
FileObject |
FileSystemManager.createFileSystem(FileObject file)
Creates a layered file system.
|
FileObject |
FileSystemManager.createFileSystem(String provider,
FileObject file)
Creates a layered file system.
|
FileObject |
FileSystemManager.createVirtualFileSystem(FileObject rootFile)
Creates a virtual file system.
|
FileObject |
FileSystemManager.createVirtualFileSystem(String rootUri)
Creates an empty virtual file system.
|
FileObject[] |
FileObject.findFiles(FileSelector selector)
Finds the set of matching descendants of this file, in depthwise order.
|
FileObject |
FileSystemManager.getBaseFile()
Returns the base file used to resolve relative paths.
|
FileObject |
FileSelectInfo.getBaseFolder()
Returns the base folder of the traversal.
|
FileObject |
FileObject.getChild(String name)
Returns a child of this file.
|
FileObject[] |
FileObject.getChildren()
Lists the children of this file.
|
FileObject |
FileSelectInfo.getFile()
Returns the file (or folder) to be considered.
|
FileObject |
FileChangeEvent.getFile()
Deprecated.
|
FileObject |
FileContent.getFile()
Gets the file which this is the content of.
|
FileObject |
FilesCache.getFile(FileSystem fileSystem,
FileName fileName)
Retrieves a FileObject from the cache by name.
|
FileObject |
FileChangeEvent.getFileObject()
Returns the file that changed.
|
FileObject |
FileObject.getParent()
Returns the folder that contains this file.
|
FileObject |
FileSystem.getParentLayer()
Returns the parent layer if this is a layered file system.
|
FileObject |
FileSystem.getRoot()
Returns the root file of this file system.
|
FileObject |
FileSystem.resolveFile(FileName name)
Finds a file in this file system.
|
FileObject |
FileSystemManager.resolveFile(FileObject baseFile,
String name)
Locates a file by name.
|
FileObject |
FileSystemManager.resolveFile(File baseFile,
String name)
Locates a file by name.
|
FileObject |
FileSystemManager.resolveFile(String name)
Locates a file by name.
|
FileObject |
FileObject.resolveFile(String path)
Finds a file, relative to this file.
|
FileObject |
FileSystem.resolveFile(String name)
Finds a file in this file system.
|
FileObject |
FileSystemManager.resolveFile(String name,
FileSystemOptions fileSystemOptions)
Locates a file by name.
|
FileObject |
FileObject.resolveFile(String name,
NameScope scope)
Finds a file relative to this file.
|
FileObject |
FileSystemManager.resolveFile(URI uri)
Resolves a URI into a
FileObject . |
FileObject |
FileSystemManager.resolveFile(URL url)
Resolves a URL into a
FileObject . |
FileObject |
FileSystemManager.toFileObject(File file)
Converts a local file into a
FileObject . |
Modifier and Type | Method and Description |
---|---|
void |
FileMonitor.addFile(FileObject file)
Adds a file to be monitored.
|
void |
FileSystem.addJunction(String junctionPoint,
FileObject targetFile)
Adds a junction to this file system.
|
void |
FileSystem.addListener(FileObject file,
FileListener listener)
Adds a listener on a file in this file system.
|
boolean |
FileSystemManager.canCreateFileSystem(FileObject file)
Determines if a layered file system can be created for a given file.
|
boolean |
FileObject.canRenameTo(FileObject newfile)
Queries the file if it is possible to rename it to newfile.
|
static void |
FileUtil.copyContent(FileObject srcFile,
FileObject destFile)
Deprecated.
|
void |
FileObject.copyFrom(FileObject srcFile,
FileSelector selector)
Copies another file, and all its descendants, to this file.
|
FileObject |
FileSystemManager.createFileSystem(FileObject file)
Creates a layered file system.
|
FileObject |
FileSystemManager.createFileSystem(String provider,
FileObject file)
Creates a layered file system.
|
FileObject |
FileSystemManager.createVirtualFileSystem(FileObject rootFile)
Creates a virtual file system.
|
static byte[] |
FileUtil.getContent(FileObject file)
Deprecated.
|
void |
FileObject.moveTo(FileObject destFile)
Move this file.
|
void |
FilesCache.putFile(FileObject file)
Adds a FileObject to the cache.
|
boolean |
FilesCache.putFileIfAbsent(FileObject file)
Adds a FileObject to the cache if it isn't already present.
|
void |
FileMonitor.removeFile(FileObject file)
Removes a file from being monitored.
|
void |
FileSystem.removeListener(FileObject file,
FileListener listener)
Removes a listener from a file in this file system.
|
File |
FileSystem.replicateFile(FileObject file,
FileSelector selector)
Creates a temporary local copy of a file and its descendants.
|
FileObject |
FileSystemManager.resolveFile(FileObject baseFile,
String name)
Locates a file by name.
|
long |
FileContent.write(FileObject file)
Writes this content to another FileObject.
|
static void |
FileUtil.writeContent(FileObject file,
OutputStream output)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
FileObject.findFiles(FileSelector selector,
boolean depthwise,
List<FileObject> selected)
Finds the set of matching descendants of this file.
|
Constructor and Description |
---|
FileChangeEvent(FileObject fileObject)
Constructs a new instance.
|
Modifier and Type | Class and Description |
---|---|
class |
OnCallRefreshFileObject
This decorator refreshes the fileObject data on every call.
|
Modifier and Type | Method and Description |
---|---|
FileObject[] |
OnCallRefreshFileObject.findFiles(FileSelector selector) |
FileObject |
OnCallRefreshFileObject.getChild(String name) |
FileObject[] |
OnCallRefreshFileObject.getChildren() |
FileObject |
NullFilesCache.getFile(FileSystem filesystem,
FileName name) |
FileObject |
DefaultFilesCache.getFile(FileSystem filesystem,
FileName name) |
FileObject |
SoftRefFilesCache.getFile(FileSystem fileSystem,
FileName fileName) |
FileObject |
LRUFilesCache.getFile(FileSystem filesystem,
FileName name) |
FileObject |
OnCallRefreshFileObject.resolveFile(String path) |
FileObject |
OnCallRefreshFileObject.resolveFile(String name,
NameScope scope) |
Modifier and Type | Method and Description |
---|---|
protected Reference<FileObject> |
SoftRefFilesCache.createReference(FileObject file,
ReferenceQueue<FileObject> refqueue) |
protected Reference<FileObject> |
WeakRefFilesCache.createReference(FileObject file,
ReferenceQueue<FileObject> refqueue) |
protected ConcurrentMap<FileName,FileObject> |
DefaultFilesCache.getOrCreateFilesystemCache(FileSystem filesystem) |
protected Map<FileName,Reference<FileObject>> |
SoftRefFilesCache.getOrCreateFilesystemCache(FileSystem fileSystem) |
protected Map<FileName,FileObject> |
LRUFilesCache.getOrCreateFilesystemCache(FileSystem filesystem) |
Modifier and Type | Method and Description |
---|---|
void |
OnCallRefreshFileObject.copyFrom(FileObject srcFile,
FileSelector selector) |
protected Reference<FileObject> |
SoftRefFilesCache.createReference(FileObject file,
ReferenceQueue<FileObject> refqueue) |
protected Reference<FileObject> |
WeakRefFilesCache.createReference(FileObject file,
ReferenceQueue<FileObject> refqueue) |
void |
OnCallRefreshFileObject.moveTo(FileObject destFile) |
void |
NullFilesCache.putFile(FileObject file) |
void |
DefaultFilesCache.putFile(FileObject file) |
void |
SoftRefFilesCache.putFile(FileObject fileObject) |
void |
LRUFilesCache.putFile(FileObject file) |
boolean |
NullFilesCache.putFileIfAbsent(FileObject file) |
boolean |
DefaultFilesCache.putFileIfAbsent(FileObject file) |
boolean |
SoftRefFilesCache.putFileIfAbsent(FileObject fileObject) |
boolean |
LRUFilesCache.putFileIfAbsent(FileObject file) |
void |
AbstractFilesCache.touchFile(FileObject file)
Default implementation is a NOOP.
|
void |
LRUFilesCache.touchFile(FileObject file) |
Modifier and Type | Method and Description |
---|---|
protected Reference<FileObject> |
SoftRefFilesCache.createReference(FileObject file,
ReferenceQueue<FileObject> refqueue) |
protected Reference<FileObject> |
WeakRefFilesCache.createReference(FileObject file,
ReferenceQueue<FileObject> refqueue) |
void |
OnCallRefreshFileObject.findFiles(FileSelector selector,
boolean depthwise,
List<FileObject> selected) |
Constructor and Description |
---|
OnCallRefreshFileObject(FileObject fileObject) |
Constructor and Description |
---|
AbstractFileChangeEvent(FileObject file) |
ChangedEvent(FileObject file) |
CreateEvent(FileObject file) |
DeleteEvent(FileObject file) |
Constructor and Description |
---|
AgeFileFilter(FileObject cutoffReference)
Constructs a new age file filter for files older than (at or before) a
certain File (whose last modification time will be used as reference).
|
AgeFileFilter(FileObject cutoffReference,
boolean acceptOlder)
Constructs a new age file filter for files on any one side of a certain File
(whose last modification time will be used as reference).
|
Modifier and Type | Class and Description |
---|---|
class |
DecoratedFileObject
Base class to build a fileObject decoration.
|
class |
SynchronizedFileObject
This decorator synchronize all access to the FileObject.
|
Modifier and Type | Method and Description |
---|---|
protected FileObject |
VirtualFileSystem.createFile(AbstractFileName name)
Creates a file object.
|
FileObject |
DefaultFileSystemManager.createFileSystem(FileObject file)
Creates a layered file system.
|
FileObject |
VirtualFileProvider.createFileSystem(FileObject rootFile)
Creates a virtual file system, with the supplied file as its root.
|
FileObject |
VirtualFileProvider.createFileSystem(String rootUri)
Creates an empty virtual file system.
|
FileObject |
DefaultFileSystemManager.createFileSystem(String scheme,
FileObject file)
Creates a layered file system.
|
FileObject |
DefaultFileSystemManager.createVirtualFileSystem(FileObject rootFile)
Creates a virtual file system.
|
FileObject |
DefaultFileSystemManager.createVirtualFileSystem(String rootUri)
Creates an empty virtual file system.
|
FileObject[] |
SynchronizedFileObject.findFiles(FileSelector selector) |
FileObject[] |
DecoratedFileObject.findFiles(FileSelector selector) |
FileObject |
DefaultFileSystemManager.getBaseFile()
Returns the base file used to resolve relative URI.
|
FileObject |
SynchronizedFileObject.getChild(String name) |
FileObject |
DecoratedFileObject.getChild(String name) |
FileObject[] |
SynchronizedFileObject.getChildren() |
FileObject[] |
DecoratedFileObject.getChildren() |
FileObject |
DecoratedFileObject.getDecoratedFileObject() |
FileObject[] |
VFSClassLoader.getFileObjects()
Provide access to the file objects this class loader represents.
|
FileObject |
DecoratedFileObject.getParent() |
FileObject |
DefaultFileSystemManager.resolveFile(FileObject baseFile,
String uri)
Resolves a URI, relative to a base file.
|
FileObject |
DefaultFileSystemManager.resolveFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Resolves a URI, relative to a base file with specified FileSystem configuration.
|
FileObject |
DefaultFileSystemManager.resolveFile(File baseFile,
String uri)
Resolves a URI, relative to base file.
|
FileObject |
SynchronizedFileObject.resolveFile(String path) |
FileObject |
DecoratedFileObject.resolveFile(String path) |
FileObject |
DefaultFileSystemManager.resolveFile(String uri)
Locates a file by URI.
|
FileObject |
DefaultFileSystemManager.resolveFile(String uri,
FileSystemOptions fileSystemOptions)
Locate a file by URI, use the FileSystemOptions for file-system creation.
|
FileObject |
SynchronizedFileObject.resolveFile(String name,
NameScope scope) |
FileObject |
DecoratedFileObject.resolveFile(String name,
NameScope scope) |
FileObject |
DefaultFileSystemManager.resolveFile(URI uri)
Converts a URI into a
FileObject . |
FileObject |
DefaultFileSystemManager.resolveFile(URL url)
Converts a URL into a
FileObject . |
FileObject |
DefaultFileSystemManager.toFileObject(File file)
Converts a local file into a
FileObject . |
Modifier and Type | Method and Description |
---|---|
Iterator<FileObject> |
DecoratedFileObject.iterator() |
Modifier and Type | Method and Description |
---|---|
void |
DefaultFileMonitor.addFile(FileObject file)
Adds a file to be monitored.
|
void |
VirtualFileSystem.addJunction(String junctionPoint,
FileObject targetFile)
Adds a junction to this file system.
|
boolean |
DefaultFileSystemManager.canCreateFileSystem(FileObject file)
Determines if a layered file system can be created for a given file.
|
boolean |
DecoratedFileObject.canRenameTo(FileObject newfile) |
int |
DecoratedFileObject.compareTo(FileObject fo) |
void |
SynchronizedFileObject.copyFrom(FileObject srcFile,
FileSelector selector) |
void |
DecoratedFileObject.copyFrom(FileObject srcFile,
FileSelector selector) |
FileObject |
DefaultFileSystemManager.createFileSystem(FileObject file)
Creates a layered file system.
|
FileObject |
VirtualFileProvider.createFileSystem(FileObject rootFile)
Creates a virtual file system, with the supplied file as its root.
|
FileObject |
DefaultFileSystemManager.createFileSystem(String scheme,
FileObject file)
Creates a layered file system.
|
FileObject |
DefaultFileSystemManager.createVirtualFileSystem(FileObject rootFile)
Creates a virtual file system.
|
void |
SynchronizedFileObject.moveTo(FileObject destFile) |
void |
DecoratedFileObject.moveTo(FileObject destFile) |
protected void |
DefaultFileMonitor.queueAddFile(FileObject file)
Queues a file for addition to be monitored.
|
protected void |
DefaultFileMonitor.queueRemoveFile(FileObject file)
Queues a file for removal from being monitored.
|
void |
DefaultFileMonitor.removeFile(FileObject file)
Removes a file from being monitored.
|
File |
DefaultFileReplicator.replicateFile(FileObject srcFile,
FileSelector selector)
Creates a local copy of the file, and all its descendants.
|
File |
PrivilegedFileReplicator.replicateFile(FileObject srcFile,
FileSelector selector)
Creates a local copy of the file, and all its descendants.
|
FileObject |
DefaultFileSystemManager.resolveFile(FileObject baseFile,
String uri)
Resolves a URI, relative to a base file.
|
FileObject |
DefaultFileSystemManager.resolveFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Resolves a URI, relative to a base file with specified FileSystem configuration.
|
void |
DefaultFileSystemManager.setBaseFile(FileObject baseFile)
Sets the base file to use when resolving relative URI.
|
Modifier and Type | Method and Description |
---|---|
void |
SynchronizedFileObject.findFiles(FileSelector selector,
boolean depthwise,
List<FileObject> selected) |
void |
DecoratedFileObject.findFiles(FileSelector selector,
boolean depthwise,
List<FileObject> selected) |
Constructor and Description |
---|
DecoratedFileObject(FileObject decoratedFileObject) |
SynchronizedFileObject(FileObject fileObject) |
VFSClassLoader(FileObject[] files,
FileSystemManager manager)
Constructors a new VFSClassLoader for the given files.
|
VFSClassLoader(FileObject[] files,
FileSystemManager manager,
ClassLoader parent)
Constructors a new VFSClassLoader for the given FileObjects.
|
VFSClassLoader(FileObject file,
FileSystemManager manager)
Constructors a new VFSClassLoader for the given file.
|
VFSClassLoader(FileObject file,
FileSystemManager manager,
ClassLoader parent)
Constructors a new VFSClassLoader for the given file.
|
Modifier and Type | Method and Description |
---|---|
protected FileObject |
AbstractFileOperation.getFileObject() |
Modifier and Type | Method and Description |
---|---|
void |
FileOperationProvider.collectOperations(Collection<Class<? extends FileOperation>> operationsList,
FileObject file)
Gather available operations for the specified FileObject and put them into specified operationsList.
|
void |
AbstractFileOperationProvider.collectOperations(Collection<Class<? extends FileOperation>> operationsList,
FileObject file)
Gather available operations for the specified FileObject and put them into specified operationsList.
|
protected abstract void |
AbstractFileOperationProvider.doCollectOperations(Collection<Class<? extends FileOperation>> availableOperations,
Collection<Class<? extends FileOperation>> resultList,
FileObject file)
Gather available operations for the specified FileObject and put them into specified operationsList.
|
FileOperation |
FileOperationProvider.getOperation(FileObject file,
Class<? extends FileOperation> operationClass)
Get implementation for a given FileObject and FileOperation interface.
|
FileOperation |
AbstractFileOperationProvider.getOperation(FileObject file,
Class<? extends FileOperation> operationClass) |
protected abstract FileOperation |
AbstractFileOperationProvider.instantiateOperation(FileObject file,
Class<? extends FileOperation> operationClass)
Get operation instance for specified FileOperation subclass.
|
Constructor and Description |
---|
AbstractFileOperation(FileObject file) |
DefaultFileOperations(FileObject file) |
Modifier and Type | Method and Description |
---|---|
void |
VcsCheckout.setTargetDirectory(FileObject targetDir) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractFileObject<AFS extends AbstractFileSystem>
A partial file object implementation.
|
class |
DelegateFileObject<AFS extends AbstractFileSystem>
A file backed by another file.
|
Modifier and Type | Method and Description |
---|---|
protected abstract FileObject |
AbstractFileSystem.createFile(AbstractFileName name)
Creates a file object.
|
FileObject |
FileProvider.createFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system.
|
FileObject |
AbstractFileProvider.createFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system.
|
FileObject |
AbstractLayeredFileProvider.createFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system.
|
protected FileObject |
AbstractFileSystem.decorateFileObject(FileObject file) |
protected FileObject[] |
AbstractFileObject.doListChildrenResolved()
Lists the children of this file.
|
protected FileObject |
AbstractOriginatingFileProvider.findFile(FileName fileName,
FileSystemOptions fileSystemOptions)
Locates a file from its parsed URI.
|
FileObject |
AbstractOriginatingFileProvider.findFile(FileObject baseFileObject,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
FileObject |
CompositeFileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
FileObject |
FileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
FileObject |
AbstractLayeredFileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
FileObject[] |
AbstractFileObject.findFiles(FileSelector selector)
Finds the set of matching descendants of this file, in depthwise order.
|
FileObject |
LocalFileProvider.findLocalFile(File file)
Converts from java.io.File to FileObject.
|
FileObject |
LocalFileProvider.findLocalFile(String name)
Finds a local file, from its local name.
|
FileObject |
AbstractFileObject.getChild(String name)
Returns a child of this file.
|
FileObject[] |
AbstractFileObject.getChildren()
Returns the children of the file.
|
FileObject |
DelegateFileObject.getDelegateFile()
Get access to the delegated file.
|
FileObject |
DefaultFileContent.getFile()
Returns the file that this is the content of.
|
protected FileObject |
AbstractFileSystem.getFileFromCache(FileName name)
Returns a cached file.
|
FileObject |
AbstractFileObject.getParent()
Returns the parent of the file.
|
FileObject |
AbstractFileSystem.getParentLayer()
Returns the parent layer if this is a layered file system.
|
FileObject |
AbstractFileSystem.getRoot()
Returns the root file of this file system.
|
FileObject |
AbstractFileSystem.resolveFile(FileName name)
Finds a file in this file system.
|
FileObject |
VfsComponentContext.resolveFile(FileObject baseFile,
String name,
FileSystemOptions fileSystemOptions)
Resolves a file by name.
|
FileObject |
AbstractFileObject.resolveFile(String path)
Finds a file, relative to this file.
|
FileObject |
AbstractFileSystem.resolveFile(String nameStr)
Finds a file in this file system.
|
FileObject |
VfsComponentContext.resolveFile(String name,
FileSystemOptions fileSystemOptions)
Resolves a file by name.
|
FileObject |
AbstractFileObject.resolveFile(String name,
NameScope scope)
Returns a child by name.
|
FileObject |
VfsComponentContext.toFileObject(File file)
Returns a
FileObject for a local file. |
Modifier and Type | Method and Description |
---|---|
Iterator<FileObject> |
AbstractFileObject.iterator()
Returns an iterator over a set of all FileObject in this file object.
|
List<FileObject> |
AbstractFileObject.listFiles(FileSelector selector)
Lists the set of matching descendants of this file, in depthwise order.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractFileSystem.addJunction(String junctionPoint,
FileObject targetFile)
Adds a junction to this file system.
|
void |
AbstractFileSystem.addListener(FileObject file,
FileListener listener)
Adds a listener on a file in this file system.
|
boolean |
AbstractFileObject.canRenameTo(FileObject newfile)
Queries the object if a simple rename to the file name of
newfile is possible. |
int |
AbstractFileObject.compareTo(FileObject file)
Compares two FileObjects (ignores case).
|
void |
AbstractFileObject.copyFrom(FileObject file,
FileSelector selector)
Copies another file to this file.
|
FileObject |
FileProvider.createFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system.
|
FileObject |
AbstractFileProvider.createFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system.
|
FileObject |
AbstractLayeredFileProvider.createFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system.
|
protected FileObject |
AbstractFileSystem.decorateFileObject(FileObject file) |
protected abstract FileSystem |
AbstractLayeredFileProvider.doCreateFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system.
|
protected boolean |
AbstractFileObject.doIsSameFile(FileObject destFile)
Checks if this fileObject is the same file as
destFile just with a different name. |
protected void |
AbstractFileObject.doRename(FileObject newFile)
Renames the file.
|
protected void |
DelegateFileObject.doRename(FileObject newFile)
Renames the file.
|
protected File |
AbstractFileSystem.doReplicateFile(FileObject file,
FileSelector selector)
Creates a temporary local copy of a file and its descendants.
|
FileObject |
AbstractOriginatingFileProvider.findFile(FileObject baseFileObject,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
FileObject |
CompositeFileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
FileObject |
FileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
FileObject |
AbstractLayeredFileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
void |
AbstractFileSystem.fireFileChanged(FileObject file)
Fires a file changed event.
|
void |
AbstractFileSystem.fireFileCreated(FileObject file)
Fires a file create event.
|
void |
AbstractFileSystem.fireFileDeleted(FileObject file)
Fires a file delete event.
|
protected boolean |
AbstractFileObject.isSameFile(FileObject destFile)
Checks if this fileObject is the same file as
destFile just with a different name. |
void |
AbstractFileObject.moveTo(FileObject destFile)
Moves (rename) the file to another one.
|
protected void |
AbstractFileSystem.putFileToCache(FileObject file)
Adds a file object to the cache.
|
void |
AbstractFileSystem.removeListener(FileObject file,
FileListener listener)
Removes a listener from a file in this file system.
|
File |
AbstractFileSystem.replicateFile(FileObject file,
FileSelector selector)
Creates a temporary local copy of a file and its descendants.
|
File |
FileReplicator.replicateFile(FileObject srcFile,
FileSelector selector)
Creates a local copy of the file, and all its descendants.
|
FileObject |
VfsComponentContext.resolveFile(FileObject baseFile,
String name,
FileSystemOptions fileSystemOptions)
Resolves a file by name.
|
void |
DelegateFileObject.setFile(FileObject file)
Attaches or detaches the target file.
|
long |
DefaultFileContent.write(FileObject file)
Writes this content to another FileObject.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractFileObject.findFiles(FileSelector selector,
boolean depthwise,
List<FileObject> selected)
Traverses the descendants of this file, and builds a list of selected files.
|
Constructor and Description |
---|
AbstractFileSystem(FileName rootFileName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions) |
DelegateFileObject(AbstractFileName name,
AFS fileSystem,
FileObject file) |
Modifier and Type | Class and Description |
---|---|
class |
Bzip2FileObject
the bzip2 file.
|
Modifier and Type | Method and Description |
---|---|
protected FileObject |
Bzip2FileSystem.createFile(AbstractFileName name) |
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
Bzip2FileProvider.createFileSystem(FileName name,
FileObject file,
FileSystemOptions fileSystemOptions) |
Constructor and Description |
---|
Bzip2FileObject(AbstractFileName name,
FileObject container,
Bzip2FileSystem fs) |
Bzip2FileObject(AbstractFileName name,
FileObject container,
CompressedFileFileSystem fs)
Deprecated.
|
Bzip2FileSystem(FileName rootName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Class and Description |
---|---|
class |
CompressedFileFileObject<FS extends CompressedFileFileSystem>
A compressed file.
|
Modifier and Type | Method and Description |
---|---|
protected abstract FileObject |
CompressedFileFileSystem.createFile(AbstractFileName name)
Creates a file object.
|
protected FileObject |
CompressedFileFileObject.getContainer() |
Modifier and Type | Method and Description |
---|---|
protected abstract FileSystem |
CompressedFileFileProvider.createFileSystem(FileName name,
FileObject file,
FileSystemOptions fileSystemOptions) |
protected FileSystem |
CompressedFileFileProvider.doCreateFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system.
|
Constructor and Description |
---|
CompressedFileFileObject(AbstractFileName name,
FileObject container,
FS fs) |
CompressedFileFileSystem(FileName rootName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Class and Description |
---|---|
class |
FtpFileObject
An FTP file.
|
Modifier and Type | Method and Description |
---|---|
protected FileObject |
FtpFileSystem.createFile(AbstractFileName name)
Creates a file object.
|
protected FileObject[] |
FtpFileObject.doListChildrenResolved() |
FileObject[] |
FtpFileObject.getChildren()
Returns the file's list of children.
|
Modifier and Type | Method and Description |
---|---|
protected void |
FtpFileObject.doRename(FileObject newFile)
Renames the file
|
Modifier and Type | Class and Description |
---|---|
class |
GzipFileObject
A Gzip file.
|
Modifier and Type | Method and Description |
---|---|
protected FileObject |
GzipFileSystem.createFile(AbstractFileName name) |
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
GzipFileProvider.createFileSystem(FileName name,
FileObject file,
FileSystemOptions fileSystemOptions) |
Constructor and Description |
---|
GzipFileObject(AbstractFileName name,
FileObject container,
CompressedFileFileSystem fs)
Deprecated.
|
GzipFileObject(AbstractFileName name,
FileObject container,
GzipFileSystem fs) |
GzipFileSystem(FileName rootName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Class and Description |
---|---|
class |
HdfsFileObject
A VFS representation of an HDFS file.
|
Modifier and Type | Method and Description |
---|---|
protected FileObject |
HdfsFileSystem.createFile(AbstractFileName name) |
protected FileObject[] |
HdfsFileObject.doListChildrenResolved() |
FileObject |
HdfsFileSystem.resolveFile(FileName name)
Resolve FileName into FileObject.
|
Modifier and Type | Method and Description |
---|---|
boolean |
HdfsFileObject.canRenameTo(FileObject newfile) |
protected void |
HdfsFileObject.doRename(FileObject newfile) |
Modifier and Type | Class and Description |
---|---|
class |
HttpFileObject<FS extends HttpFileSystem>
A file object backed by Apache Commons HttpClient.
|
Modifier and Type | Method and Description |
---|---|
protected FileObject |
HttpFileSystem.createFile(AbstractFileName name)
Creates a file object.
|
Modifier and Type | Class and Description |
---|---|
class |
Http4FileObject<FS extends Http4FileSystem>
A file object backed by Apache HttpComponents HttpClient.
|
Modifier and Type | Method and Description |
---|---|
protected FileObject |
Http4FileSystem.createFile(AbstractFileName name) |
Modifier and Type | Class and Description |
---|---|
class |
Http5FileObject<FS extends Http5FileSystem>
A file object backed by Apache HttpComponents HttpClient v5.
|
Modifier and Type | Method and Description |
---|---|
protected FileObject |
Http5FileSystem.createFile(AbstractFileName name) |
Modifier and Type | Class and Description |
---|---|
class |
JarFileObject
A file in a Jar file system.
|
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
JarFileProvider.doCreateFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system.
|
Constructor and Description |
---|
JarFileSystem(AbstractFileName rootName,
FileObject file,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Class and Description |
---|---|
class |
LocalFile
A file object implementation which uses direct file access.
|
Modifier and Type | Method and Description |
---|---|
protected FileObject |
LocalFileSystem.createFile(AbstractFileName name)
Creates a file object.
|
FileObject |
DefaultLocalFileProvider.findLocalFile(File file)
Finds a local file.
|
FileObject |
DefaultLocalFileProvider.findLocalFile(String name)
Finds a local file, from its local name.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
LocalFile.doIsSameFile(FileObject destFile) |
protected void |
LocalFile.doRename(FileObject newFile)
rename this file
|
protected File |
LocalFileSystem.doReplicateFile(FileObject fileObject,
FileSelector selector)
Creates a temporary local copy of a file and its descendants.
|
Modifier and Type | Class and Description |
---|---|
class |
RamFileObject
A RAM File contains a single RAM FileData instance, it provides methods to access the data by implementing FileObject
interface.
|
Modifier and Type | Method and Description |
---|---|
protected FileObject |
RamFileSystem.createFile(AbstractFileName name) |
Modifier and Type | Method and Description |
---|---|
protected void |
RamFileObject.doRename(FileObject newFile) |
Modifier and Type | Method and Description |
---|---|
FileObject |
ResourceFileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
Modifier and Type | Method and Description |
---|---|
FileObject |
ResourceFileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
Modifier and Type | Class and Description |
---|---|
class |
SftpFileObject
An SFTP file.
|
Modifier and Type | Method and Description |
---|---|
protected FileObject |
SftpFileSystem.createFile(AbstractFileName name)
Creates a file object.
|
protected FileObject[] |
SftpFileObject.doListChildrenResolved()
Lists the children of this file.
|
Modifier and Type | Method and Description |
---|---|
protected void |
SftpFileObject.doRename(FileObject newFile)
Renames the file.
|
Modifier and Type | Class and Description |
---|---|
class |
TarFileObject
A file in a Tar file system.
|
Modifier and Type | Method and Description |
---|---|
protected FileObject |
TarFileSystem.createFile(AbstractFileName name)
Creates a file object.
|
protected FileObject |
TarFileSystem.getFileFromCache(FileName name)
Returns a cached file.
|
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
TarFileProvider.doCreateFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system.
|
protected void |
TarFileSystem.putFileToCache(FileObject file)
Adds a file object to the cache.
|
Constructor and Description |
---|
TarFileSystem(AbstractFileName rootName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Method and Description |
---|---|
FileObject |
TemporaryFileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
Modifier and Type | Method and Description |
---|---|
FileObject |
TemporaryFileProvider.findFile(FileObject baseFile,
String uri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
Modifier and Type | Class and Description |
---|---|
class |
UrlFileObject
A
FileObject implementation backed by a URL . |
Modifier and Type | Method and Description |
---|---|
protected FileObject |
UrlFileSystem.createFile(AbstractFileName name)
Creates a file object.
|
FileObject |
UrlFileProvider.findFile(FileObject baseFile,
String fileUri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
Modifier and Type | Method and Description |
---|---|
FileObject |
UrlFileProvider.findFile(FileObject baseFile,
String fileUri,
FileSystemOptions fileSystemOptions)
Locates a file object, by absolute URI.
|
Modifier and Type | Class and Description |
---|---|
class |
ZipFileObject
A file in a ZIP file system.
|
Modifier and Type | Method and Description |
---|---|
protected FileObject |
ZipFileSystem.createFile(AbstractFileName name)
Creates a file object.
|
protected FileObject |
ZipFileSystem.getFileFromCache(FileName name)
Returns a cached file.
|
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
ZipFileProvider.doCreateFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system.
|
protected void |
ZipFileSystem.putFileToCache(FileObject file)
Adds a file object to the cache.
|
Constructor and Description |
---|
ZipFileSystem(AbstractFileName rootName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Method and Description |
---|---|
protected FileObject |
VfsTask.resolveFile(String uri)
Resolves a URI to a file, relative to the project's base directory.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractSyncTask.handleMissingSourceFile(FileObject destFile)
Handles a destination for which there is no corresponding source file.
|
protected void |
SyncTask.handleMissingSourceFile(FileObject destFile)
Handles a destination for which there is no corresponding source file.
|
protected void |
AbstractSyncTask.handleOutOfDateFile(FileObject srcFile,
FileObject destFile)
Handles an out-of-date file.
|
protected void |
MoveTask.handleOutOfDateFile(FileObject srcFile,
FileObject destFile)
Handles a single source file.
|
protected void |
CopyTask.handleOutOfDateFile(FileObject srcFile,
FileObject destFile)
Handles an out-of-date file.
|
protected void |
AbstractSyncTask.handleUpToDateFile(FileObject srcFile,
FileObject destFile)
Handles an up-to-date file.
|
protected void |
CopyTask.handleUpToDateFile(FileObject srcFile,
FileObject destFile)
Handles an up-to-date file.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
FileObjectUtils.exists(FileObject fileObject)
Null-safe call to
exists() . |
static AbstractFileObject |
FileObjectUtils.getAbstractFileObject(FileObject fileObject)
Gets access to the base object even if decorated.
|
static byte[] |
FileObjectUtils.getContentAsByteArray(FileObject file)
Gets the content of a file object, as a byte array.
|
static String |
FileObjectUtils.getContentAsString(FileObject file,
Charset charset)
Gets the content of a file as a String.
|
static String |
FileObjectUtils.getContentAsString(FileObject file,
String charset)
Returns the content of a file as a String.
|
static void |
WeakRefFileListener.installListener(FileObject file,
FileListener listener)
Installs the
listener at the given file . |
static boolean |
FileObjectUtils.isInstanceOf(FileObject fileObject,
Class<?> wantedClass)
Checks if the given FileObject is instance of given class argument.
|
static Properties |
FileObjectUtils.readProperties(FileObject fileObject)
Reads the given file into a new
Properties . |
static Properties |
FileObjectUtils.readProperties(FileObject fileObject,
Properties properties)
Reads the given file into a new given
Properties . |
static void |
FileObjectUtils.writeContent(FileObject srcFile,
FileObject destFile)
Writes the content from a source file to a destination file.
|
static void |
FileObjectUtils.writeContent(FileObject file,
OutputStream output)
Writes the content of a file to an OutputStream.
|
Constructor and Description |
---|
WeakRefFileListener(FileObject file,
FileListener listener) |
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.