Uses of Interface
org.apache.commons.vfs2.FileObject
Packages that use FileObject
Package
Description
The public VFS API.
VFS File caching.
VFS Events.
Implementations of
FileFilter
.The standard VFS implementation.
VFS Operations handling.
VFS version control operations.
The File Provider API, and utility classes.
The BZIP2 File Provider.
The compressed file provider.
The FTP File Provider.
The GZIP File Provider.
The HTTP File Provider.
The HTTP4 File Provider.
The HTTP5 File Provider.
The Jar File Provider.
The Local File Provider.
The RAM File Provider.
The Resource File Provider.
The SFTP Provider.
The Tar File Provider.
The Temporary Filespace Provider.
The Default File Provider, which wraps
URL
.The Zip File Provider.
Utility classes used by the VFS.
-
Uses of FileObject in org.apache.commons.vfs2
Fields in org.apache.commons.vfs2 declared as FileObjectModifier and TypeFieldDescriptionstatic final FileObject[]
FileObject.EMPTY_ARRAY
An empty immutableFileObject
array.Methods in org.apache.commons.vfs2 that return FileObjectModifier and TypeMethodDescriptionFileSystemManager.createFileSystem
(String provider, FileObject file) Creates a layered file system.FileSystemManager.createFileSystem
(FileObject file) Creates a layered file system.FileSystemManager.createVirtualFileSystem
(String rootUri) Creates an empty virtual file system.FileSystemManager.createVirtualFileSystem
(FileObject rootFile) Creates a virtual file system.FileObject.findFiles
(FileSelector selector) Finds the set of matching descendants of this file, in depthwise order.FileSystemManager.getBaseFile()
Returns the base file used to resolve relative paths.FileSelectInfo.getBaseFolder()
Gets the base folder of the traversal.Gets a child of this file.FileObject.getChildren()
Gets a lists of children of this file.FileChangeEvent.getFile()
Deprecated.FileContent.getFile()
Gets the file which this is the content of.FilesCache.getFile
(FileSystem fileSystem, FileName fileName) Retrieves a FileObject from the cache by name.FileSelectInfo.getFile()
Gets the file (or folder) to be considered.FileChangeEvent.getFileObject()
Returns the file that changed.FileObject.getParent()
Gets the folder that contains this file.FileSystem.getParentLayer()
Returns the parent layer if this is a layered file system.FileSystem.getRoot()
Returns the root file of this file system.FileObject.resolveFile
(String path) Finds a file, relative to this file.FileObject.resolveFile
(String name, NameScope scope) Finds a file relative to this file.FileSystem.resolveFile
(String name) Finds a file in this file system.FileSystem.resolveFile
(FileName name) Finds a file in this file system.FileSystemManager.resolveFile
(File baseFile, String name) Locates a file by name.FileSystemManager.resolveFile
(String name) Locates a file by name.FileSystemManager.resolveFile
(String name, FileSystemOptions fileSystemOptions) Locates a file by name.FileSystemManager.resolveFile
(URI uri) Resolves a URI into aFileObject
.FileSystemManager.resolveFile
(URL url) Resolves a URL into aFileObject
.FileSystemManager.resolveFile
(FileObject baseFile, String name) Locates a file by name.FileSystemManager.toFileObject
(File file) Converts a local file into aFileObject
.default FileObject
FileSystemManager.toFileObject
(Path path) Converts a local path into aFileObject
.Methods in org.apache.commons.vfs2 with parameters of type FileObjectModifier and TypeMethodDescriptionvoid
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.FileSystemManager.createFileSystem
(String provider, FileObject file) Creates a layered file system.FileSystemManager.createFileSystem
(FileObject file) Creates a layered file system.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.FileSystem.replicateFile
(FileObject file, FileSelector selector) Creates a temporary local copy of a file and its descendants.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.Method parameters in org.apache.commons.vfs2 with type arguments of type FileObjectModifier and TypeMethodDescriptionvoid
FileObject.findFiles
(FileSelector selector, boolean depthwise, List<FileObject> selected) Finds the set of matching descendants of this file.Constructors in org.apache.commons.vfs2 with parameters of type FileObject -
Uses of FileObject in org.apache.commons.vfs2.cache
Classes in org.apache.commons.vfs2.cache that implement FileObjectModifier and TypeClassDescriptionclass
This decorator refreshes the fileObject data on every call.Methods in org.apache.commons.vfs2.cache that return FileObjectModifier and TypeMethodDescriptionOnCallRefreshFileObject.findFiles
(FileSelector selector) OnCallRefreshFileObject.getChildren()
DefaultFilesCache.getFile
(FileSystem filesystem, FileName name) LRUFilesCache.getFile
(FileSystem filesystem, FileName name) NullFilesCache.getFile
(FileSystem filesystem, FileName name) SoftRefFilesCache.getFile
(FileSystem fileSystem, FileName fileName) OnCallRefreshFileObject.resolveFile
(String path) OnCallRefreshFileObject.resolveFile
(String name, NameScope scope) Methods in org.apache.commons.vfs2.cache that return types with arguments of type FileObjectModifier and TypeMethodDescriptionprotected Reference<FileObject>
SoftRefFilesCache.createReference
(FileObject file, ReferenceQueue<FileObject> referenceQueue) Constructs a new Reference.protected Reference<FileObject>
WeakRefFilesCache.createReference
(FileObject file, ReferenceQueue<FileObject> refqueue) protected ConcurrentMap<FileName,
FileObject> DefaultFilesCache.getOrCreateFilesystemCache
(FileSystem fileSystem) Gets or creates a Map.protected Map<FileName,
FileObject> LRUFilesCache.getOrCreateFilesystemCache
(FileSystem fileSystem) Gets or creates a new Map.protected Map<FileName,
Reference<FileObject>> SoftRefFilesCache.getOrCreateFilesystemCache
(FileSystem fileSystem) Gets or creates a new Map.Methods in org.apache.commons.vfs2.cache with parameters of type FileObjectModifier and TypeMethodDescriptionvoid
OnCallRefreshFileObject.copyFrom
(FileObject srcFile, FileSelector selector) protected Reference<FileObject>
SoftRefFilesCache.createReference
(FileObject file, ReferenceQueue<FileObject> referenceQueue) Constructs a new Reference.protected Reference<FileObject>
WeakRefFilesCache.createReference
(FileObject file, ReferenceQueue<FileObject> refqueue) void
OnCallRefreshFileObject.moveTo
(FileObject destFile) void
DefaultFilesCache.putFile
(FileObject file) void
LRUFilesCache.putFile
(FileObject file) void
NullFilesCache.putFile
(FileObject file) void
SoftRefFilesCache.putFile
(FileObject fileObject) boolean
DefaultFilesCache.putFileIfAbsent
(FileObject file) boolean
LRUFilesCache.putFileIfAbsent
(FileObject file) boolean
NullFilesCache.putFileIfAbsent
(FileObject file) boolean
SoftRefFilesCache.putFileIfAbsent
(FileObject fileObject) void
AbstractFilesCache.touchFile
(FileObject file) Default implementation is a NOOP.void
LRUFilesCache.touchFile
(FileObject file) Method parameters in org.apache.commons.vfs2.cache with type arguments of type FileObjectModifier and TypeMethodDescriptionprotected Reference<FileObject>
SoftRefFilesCache.createReference
(FileObject file, ReferenceQueue<FileObject> referenceQueue) Constructs a new Reference.protected Reference<FileObject>
WeakRefFilesCache.createReference
(FileObject file, ReferenceQueue<FileObject> refqueue) void
OnCallRefreshFileObject.findFiles
(FileSelector selector, boolean depthwise, List<FileObject> selected) Constructors in org.apache.commons.vfs2.cache with parameters of type FileObjectModifierConstructorDescriptionOnCallRefreshFileObject
(FileObject fileObject) Constructs a new instance to decorate the given file object. -
Uses of FileObject in org.apache.commons.vfs2.events
Constructors in org.apache.commons.vfs2.events with parameters of type FileObjectModifierConstructorDescriptionAbstractFileChangeEvent
(FileObject fileObject) Constructs a new instance for subclasses.ChangedEvent
(FileObject fileObject) Constructs a new instance.CreateEvent
(FileObject fileObject) Constructs a new instance.DeleteEvent
(FileObject fileObject) Constructs a new instance. -
Uses of FileObject in org.apache.commons.vfs2.filter
Constructors in org.apache.commons.vfs2.filter with parameters of type FileObjectModifierConstructorDescriptionAgeFileFilter
(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). -
Uses of FileObject in org.apache.commons.vfs2.impl
Classes in org.apache.commons.vfs2.impl that implement FileObjectModifier and TypeClassDescriptionclass
Base class to build a FileObject decoration.class
This decorator synchronizes all access to the FileObject.Methods in org.apache.commons.vfs2.impl that return FileObjectModifier and TypeMethodDescriptionprotected FileObject
VirtualFileSystem.createFile
(AbstractFileName name) Creates a file object.DefaultFileSystemManager.createFileSystem
(String scheme, FileObject file) Creates a layered file system.DefaultFileSystemManager.createFileSystem
(FileObject file) Creates a layered file system.VirtualFileProvider.createFileSystem
(String rootUri) Creates an empty virtual file system.VirtualFileProvider.createFileSystem
(FileObject rootFile) Creates a virtual file system, with the supplied file as its root.DefaultFileSystemManager.createVirtualFileSystem
(String rootUri) Creates an empty virtual file system.DefaultFileSystemManager.createVirtualFileSystem
(FileObject rootFile) Creates a virtual file system.DecoratedFileObject.findFiles
(FileSelector selector) SynchronizedFileObject.findFiles
(FileSelector selector) DefaultFileSystemManager.getBaseFile()
Gets the base file used to resolve relative URI.DecoratedFileObject.getChildren()
SynchronizedFileObject.getChildren()
DecoratedFileObject.getDecoratedFileObject()
Gets the decorated fileObject.VFSClassLoader.getFileObjects()
Provide access to the file objects this class loader represents.DecoratedFileObject.getParent()
DecoratedFileObject.resolveFile
(String path) DecoratedFileObject.resolveFile
(String name, NameScope scope) DefaultFileSystemManager.resolveFile
(File baseFile, String uri) Resolves a URI, relative to base file.DefaultFileSystemManager.resolveFile
(String uri) Locates a file by URI.DefaultFileSystemManager.resolveFile
(String uri, FileSystemOptions fileSystemOptions) Resolves a file by URI, use the FileSystemOptions for file-system creation.DefaultFileSystemManager.resolveFile
(URI uri) Resolves a URI into aFileObject
.DefaultFileSystemManager.resolveFile
(URL url) Resolves a URL into aFileObject
.DefaultFileSystemManager.resolveFile
(FileObject baseFile, String uri) Resolves a URI, relative to a base file.DefaultFileSystemManager.resolveFile
(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) Resolves a URI, relative to a base file with specified FileSystem configuration.SynchronizedFileObject.resolveFile
(String path) SynchronizedFileObject.resolveFile
(String name, NameScope scope) DefaultFileSystemManager.toFileObject
(File file) Converts a local file into aFileObject
.Methods in org.apache.commons.vfs2.impl that return types with arguments of type FileObjectMethods in org.apache.commons.vfs2.impl with parameters of type FileObjectModifier and TypeMethodDescriptionvoid
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) Tests if a layered file system can be created for a given file.boolean
DecoratedFileObject.canRenameTo
(FileObject newfile) int
DecoratedFileObject.compareTo
(FileObject fo) void
DecoratedFileObject.copyFrom
(FileObject srcFile, FileSelector selector) void
SynchronizedFileObject.copyFrom
(FileObject srcFile, FileSelector selector) DefaultFileSystemManager.createFileSystem
(String scheme, FileObject file) Creates a layered file system.DefaultFileSystemManager.createFileSystem
(FileObject file) Creates a layered file system.VirtualFileProvider.createFileSystem
(FileObject rootFile) Creates a virtual file system, with the supplied file as its root.DefaultFileSystemManager.createVirtualFileSystem
(FileObject rootFile) Creates a virtual file system.void
DecoratedFileObject.moveTo
(FileObject destFile) void
SynchronizedFileObject.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.DefaultFileReplicator.replicateFile
(FileObject srcFile, FileSelector selector) Creates a local copy of the file, and all its descendants.PrivilegedFileReplicator.replicateFile
(FileObject srcFile, FileSelector selector) Creates a local copy of the file, and all its descendants.DefaultFileSystemManager.resolveFile
(FileObject baseFile, String uri) Resolves a URI, relative to a base file.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.Method parameters in org.apache.commons.vfs2.impl with type arguments of type FileObjectModifier and TypeMethodDescriptionvoid
DecoratedFileObject.findFiles
(FileSelector selector, boolean depthwise, List<FileObject> selected) void
SynchronizedFileObject.findFiles
(FileSelector selector, boolean depthwise, List<FileObject> selected) Constructors in org.apache.commons.vfs2.impl with parameters of type FileObjectModifierConstructorDescriptionDecoratedFileObject
(FileObject fileObject) Constructs a new instance to decorate the given FileObject.SynchronizedFileObject
(FileObject fileObject) Constructs a new instance.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. -
Uses of FileObject in org.apache.commons.vfs2.operations
Methods in org.apache.commons.vfs2.operations that return FileObjectModifier and TypeMethodDescriptionprotected FileObject
AbstractFileOperation.getFileObject()
Gets the instance of FileObject for this FileOperation.Methods in org.apache.commons.vfs2.operations with parameters of type FileObjectModifier and TypeMethodDescriptionfinal void
AbstractFileOperationProvider.collectOperations
(Collection<Class<? extends FileOperation>> operationsList, FileObject file) Gather available operations for the specified FileObject and put them into specified operationsList.void
FileOperationProvider.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.final FileOperation
AbstractFileOperationProvider.getOperation
(FileObject file, Class<? extends FileOperation> operationClass) FileOperationProvider.getOperation
(FileObject file, Class<? extends FileOperation> operationClass) Gets implementation for a given FileObject and FileOperation interface.protected abstract FileOperation
AbstractFileOperationProvider.instantiateOperation
(FileObject file, Class<? extends FileOperation> operationClass) Gets operation instance for specified FileOperation subclass.Constructors in org.apache.commons.vfs2.operations with parameters of type FileObjectModifierConstructorDescriptionConstructs a new instance for subclasses.Constructs a new instance. -
Uses of FileObject in org.apache.commons.vfs2.operations.vcs
Methods in org.apache.commons.vfs2.operations.vcs with parameters of type FileObjectModifier and TypeMethodDescriptionvoid
VcsCheckout.setTargetDirectory
(FileObject targetDir) Sets directory under which retrieved files should be placed. -
Uses of FileObject in org.apache.commons.vfs2.provider
Classes in org.apache.commons.vfs2.provider that implement FileObjectModifier and TypeClassDescriptionclass
AbstractFileObject<AFS extends AbstractFileSystem>
A partial file object implementation.class
DelegateFileObject<AFS extends AbstractFileSystem>
A file backed by another file.Methods in org.apache.commons.vfs2.provider that return FileObjectModifier and TypeMethodDescriptionprotected abstract FileObject
AbstractFileSystem.createFile
(AbstractFileName name) Creates a file object.AbstractFileProvider.createFileSystem
(String scheme, FileObject file, FileSystemOptions fileSystemOptions) Creates a layered file system.AbstractLayeredFileProvider.createFileSystem
(String scheme, FileObject file, FileSystemOptions fileSystemOptions) Creates a layered file system.FileProvider.createFileSystem
(String scheme, FileObject file, FileSystemOptions fileSystemOptions) Creates a layered file system.protected FileObject
AbstractFileSystem.decorateFileObject
(FileObject file) Decorates the given file object.protected FileObject[]
AbstractFileObject.doListChildrenResolved()
Lists the children of this file.AbstractLayeredFileProvider.findFile
(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) Locates a file object, by absolute URI.protected FileObject
AbstractOriginatingFileProvider.findFile
(FileName fileName, FileSystemOptions fileSystemOptions) Locates a file from its parsed URI.AbstractOriginatingFileProvider.findFile
(FileObject baseFileObject, String uri, FileSystemOptions fileSystemOptions) Locates a file object, by absolute URI.CompositeFileProvider.findFile
(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) Locates a file object, by absolute URI.FileProvider.findFile
(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) Locates a file object, by absolute URI.AbstractFileObject.findFiles
(FileSelector selector) Finds the set of matching descendants of this file, in depthwise order.LocalFileProvider.findLocalFile
(File file) Converts from java.io.File to FileObject.LocalFileProvider.findLocalFile
(String name) Finds a local file, from its local name.Returns a child of this file.AbstractFileObject.getChildren()
Returns the children of the file.DelegateFileObject.getDelegateFile()
Gets access to the delegated file.DefaultFileContent.getFile()
Returns the file that this is the content of.protected FileObject
AbstractFileSystem.getFileFromCache
(FileName name) Gets a cached file.AbstractFileObject.getParent()
Returns the parent of the file.AbstractFileSystem.getParentLayer()
Gets the parent layer if this is a layered file system.AbstractFileSystem.getRoot()
Gets the root file of this file system.AbstractFileObject.resolveFile
(String path) Finds a file, relative to this file.AbstractFileObject.resolveFile
(String name, NameScope scope) Returns a child by name.AbstractFileSystem.resolveFile
(String nameStr) Finds a file in this file system.AbstractFileSystem.resolveFile
(FileName name) Finds a file in this file system.VfsComponentContext.resolveFile
(String name, FileSystemOptions fileSystemOptions) Resolves a file by name.VfsComponentContext.resolveFile
(FileObject baseFile, String name, FileSystemOptions fileSystemOptions) Resolves a file by name.VfsComponentContext.toFileObject
(File file) Returns aFileObject
for a local file.Methods in org.apache.commons.vfs2.provider that return types with arguments of type FileObjectModifier and TypeMethodDescriptionAbstractFileObject.iterator()
Returns an iterator over a set of all FileObject in this file object.AbstractFileObject.listFiles
(FileSelector selector) Lists the set of matching descendants of this file, in depthwise order.Methods in org.apache.commons.vfs2.provider with parameters of type FileObjectModifier and TypeMethodDescriptionvoid
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 ofnewfile
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.AbstractFileProvider.createFileSystem
(String scheme, FileObject file, FileSystemOptions fileSystemOptions) Creates a layered file system.AbstractLayeredFileProvider.createFileSystem
(String scheme, FileObject file, FileSystemOptions fileSystemOptions) Creates a layered file system.FileProvider.createFileSystem
(String scheme, FileObject file, FileSystemOptions fileSystemOptions) Creates a layered file system.protected FileObject
AbstractFileSystem.decorateFileObject
(FileObject file) Decorates the given file object.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 asdestFile
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.AbstractLayeredFileProvider.findFile
(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) Locates a file object, by absolute URI.AbstractOriginatingFileProvider.findFile
(FileObject baseFileObject, String uri, FileSystemOptions fileSystemOptions) Locates a file object, by absolute URI.CompositeFileProvider.findFile
(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) Locates a file object, by absolute URI.FileProvider.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 asdestFile
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.AbstractFileSystem.replicateFile
(FileObject file, FileSelector selector) Creates a temporary local copy of a file and its descendants.FileReplicator.replicateFile
(FileObject srcFile, FileSelector selector) Creates a local copy of the file, and all its descendants.VfsComponentContext.resolveFile
(FileObject baseFile, String name, FileSystemOptions fileSystemOptions) Resolves a file by name.void
DelegateFileObject.setFile
(FileObject fileObject) Attaches or detaches the target file.long
DefaultFileContent.write
(FileObject file) Writes this content to another FileObject.Method parameters in org.apache.commons.vfs2.provider with type arguments of type FileObjectModifier and TypeMethodDescriptionvoid
AbstractFileObject.findFiles
(FileSelector selector, boolean depthwise, List<FileObject> selected) Traverses the descendants of this file, and builds a list of selected files.Constructors in org.apache.commons.vfs2.provider with parameters of type FileObjectModifierConstructorDescriptionprotected
AbstractFileSystem
(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) Constructs a new instance.DelegateFileObject
(AbstractFileName fileName, AFS fileSystem, FileObject fileObject) Constructs a new instance. -
Uses of FileObject in org.apache.commons.vfs2.provider.bzip2
Classes in org.apache.commons.vfs2.provider.bzip2 that implement FileObjectMethods in org.apache.commons.vfs2.provider.bzip2 that return FileObjectModifier and TypeMethodDescriptionprotected FileObject
Bzip2FileSystem.createFile
(AbstractFileName name) Methods in org.apache.commons.vfs2.provider.bzip2 with parameters of type FileObjectModifier and TypeMethodDescriptionprotected FileSystem
Bzip2FileProvider.createFileSystem
(FileName name, FileObject file, FileSystemOptions fileSystemOptions) Constructors in org.apache.commons.vfs2.provider.bzip2 with parameters of type FileObjectModifierConstructorDescriptionprotected
Bzip2FileObject
(AbstractFileName fileName, FileObject container, Bzip2FileSystem fileSystem) Constructs a new instance.protected
Bzip2FileObject
(AbstractFileName name, FileObject container, CompressedFileFileSystem fs) Deprecated.protected
Bzip2FileSystem
(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) Constructs a new instance. -
Uses of FileObject in org.apache.commons.vfs2.provider.compressed
Classes in org.apache.commons.vfs2.provider.compressed that implement FileObjectModifier and TypeClassDescriptionclass
CompressedFileFileObject<FS extends CompressedFileFileSystem>
A compressed file.Methods in org.apache.commons.vfs2.provider.compressed that return FileObjectModifier and TypeMethodDescriptionprotected abstract FileObject
CompressedFileFileSystem.createFile
(AbstractFileName name) Creates a file object.protected FileObject
CompressedFileFileObject.getContainer()
Gets the container.Methods in org.apache.commons.vfs2.provider.compressed with parameters of type FileObjectModifier and TypeMethodDescriptionprotected abstract FileSystem
CompressedFileFileProvider.createFileSystem
(FileName name, FileObject file, FileSystemOptions fileSystemOptions) Create a FileSystem.protected FileSystem
CompressedFileFileProvider.doCreateFileSystem
(String scheme, FileObject file, FileSystemOptions fileSystemOptions) Creates a layered file system.Constructors in org.apache.commons.vfs2.provider.compressed with parameters of type FileObjectModifierConstructorDescriptionprotected
CompressedFileFileObject
(AbstractFileName fileName, FileObject container, FS fileSystem) Constructs a new instance.protected
CompressedFileFileSystem
(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) Constructs a new instance. -
Uses of FileObject in org.apache.commons.vfs2.provider.ftp
Classes in org.apache.commons.vfs2.provider.ftp that implement FileObjectMethods in org.apache.commons.vfs2.provider.ftp that return FileObjectModifier and TypeMethodDescriptionprotected FileObject
FtpFileSystem.createFile
(AbstractFileName name) Creates a file object.protected FileObject[]
FtpFileObject.doListChildrenResolved()
FtpFileObject.getChildren()
Returns the file's list of children.Methods in org.apache.commons.vfs2.provider.ftp with parameters of type FileObjectModifier and TypeMethodDescriptionprotected void
FtpFileObject.doRename
(FileObject newFile) Renames the file -
Uses of FileObject in org.apache.commons.vfs2.provider.gzip
Classes in org.apache.commons.vfs2.provider.gzip that implement FileObjectMethods in org.apache.commons.vfs2.provider.gzip that return FileObjectModifier and TypeMethodDescriptionprotected FileObject
GzipFileSystem.createFile
(AbstractFileName name) Methods in org.apache.commons.vfs2.provider.gzip with parameters of type FileObjectModifier and TypeMethodDescriptionprotected FileSystem
GzipFileProvider.createFileSystem
(FileName name, FileObject file, FileSystemOptions fileSystemOptions) Constructors in org.apache.commons.vfs2.provider.gzip with parameters of type FileObjectModifierConstructorDescriptionprotected
GzipFileObject
(AbstractFileName name, FileObject container, CompressedFileFileSystem fs) Deprecated.protected
GzipFileObject
(AbstractFileName fileName, FileObject container, GzipFileSystem fileSystem) Constructs a new instance.protected
GzipFileSystem
(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) Constructs a new instance. -
Uses of FileObject in org.apache.commons.vfs2.provider.http
Classes in org.apache.commons.vfs2.provider.http that implement FileObjectMethods in org.apache.commons.vfs2.provider.http that return FileObjectModifier and TypeMethodDescriptionprotected FileObject
HttpFileSystem.createFile
(AbstractFileName name) Deprecated.Creates a file object. -
Uses of FileObject in org.apache.commons.vfs2.provider.http4
Classes in org.apache.commons.vfs2.provider.http4 that implement FileObjectMethods in org.apache.commons.vfs2.provider.http4 that return FileObjectModifier and TypeMethodDescriptionprotected FileObject
Http4FileSystem.createFile
(AbstractFileName name) Deprecated. -
Uses of FileObject in org.apache.commons.vfs2.provider.http5
Classes in org.apache.commons.vfs2.provider.http5 that implement FileObjectModifier and TypeClassDescriptionclass
Http5FileObject<FS extends Http5FileSystem>
A file object backed by Apache HttpComponents HttpClient v5.Methods in org.apache.commons.vfs2.provider.http5 that return FileObjectModifier and TypeMethodDescriptionprotected FileObject
Http5FileSystem.createFile
(AbstractFileName name) -
Uses of FileObject in org.apache.commons.vfs2.provider.jar
Classes in org.apache.commons.vfs2.provider.jar that implement FileObjectMethods in org.apache.commons.vfs2.provider.jar with parameters of type FileObjectModifier and TypeMethodDescriptionprotected FileSystem
JarFileProvider.doCreateFileSystem
(String scheme, FileObject file, FileSystemOptions fileSystemOptions) Creates a layered file system.Constructors in org.apache.commons.vfs2.provider.jar with parameters of type FileObjectModifierConstructorDescriptionprotected
JarFileSystem
(AbstractFileName rootFileName, FileObject parentLayer, FileSystemOptions fileSystemOptions) Constructs a new instance. -
Uses of FileObject in org.apache.commons.vfs2.provider.local
Classes in org.apache.commons.vfs2.provider.local that implement FileObjectModifier and TypeClassDescriptionclass
A file object implementation which uses direct file access.Methods in org.apache.commons.vfs2.provider.local that return FileObjectModifier and TypeMethodDescriptionprotected FileObject
LocalFileSystem.createFile
(AbstractFileName name) Creates a file object.DefaultLocalFileProvider.findLocalFile
(File file) Finds a local file.DefaultLocalFileProvider.findLocalFile
(String name) Finds a local file, from its local name.Methods in org.apache.commons.vfs2.provider.local with parameters of type FileObjectModifier and TypeMethodDescriptionprotected boolean
LocalFile.doIsSameFile
(FileObject destFile) protected void
LocalFile.doRename
(FileObject newFile) rename this fileprotected File
LocalFileSystem.doReplicateFile
(FileObject fileObject, FileSelector selector) Creates a temporary local copy of a file and its descendants. -
Uses of FileObject in org.apache.commons.vfs2.provider.ram
Classes in org.apache.commons.vfs2.provider.ram that implement FileObjectModifier and TypeClassDescriptionclass
A RAM File contains a single RAM FileData instance, it provides methods to access the data by implementing FileObject interface.Methods in org.apache.commons.vfs2.provider.ram that return FileObjectModifier and TypeMethodDescriptionprotected FileObject
RamFileSystem.createFile
(AbstractFileName name) Methods in org.apache.commons.vfs2.provider.ram with parameters of type FileObject -
Uses of FileObject in org.apache.commons.vfs2.provider.res
Methods in org.apache.commons.vfs2.provider.res that return FileObjectModifier and TypeMethodDescriptionResourceFileProvider.findFile
(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) Locates a file object, by absolute URI.Methods in org.apache.commons.vfs2.provider.res with parameters of type FileObjectModifier and TypeMethodDescriptionResourceFileProvider.findFile
(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) Locates a file object, by absolute URI. -
Uses of FileObject in org.apache.commons.vfs2.provider.sftp
Classes in org.apache.commons.vfs2.provider.sftp that implement FileObjectMethods in org.apache.commons.vfs2.provider.sftp that return FileObjectModifier and TypeMethodDescriptionprotected FileObject
SftpFileSystem.createFile
(AbstractFileName name) Creates a file object.protected FileObject[]
SftpFileObject.doListChildrenResolved()
Lists the children of this file.Methods in org.apache.commons.vfs2.provider.sftp with parameters of type FileObjectModifier and TypeMethodDescriptionprotected void
SftpFileObject.doRename
(FileObject newFile) Renames the file. -
Uses of FileObject in org.apache.commons.vfs2.provider.tar
Classes in org.apache.commons.vfs2.provider.tar that implement FileObjectMethods in org.apache.commons.vfs2.provider.tar that return FileObjectModifier and TypeMethodDescriptionprotected FileObject
TarFileSystem.createFile
(AbstractFileName name) Creates a file object.protected FileObject
TarFileSystem.getFileFromCache
(FileName name) Returns a cached file.Methods in org.apache.commons.vfs2.provider.tar with parameters of type FileObjectModifier and TypeMethodDescriptionprotected 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.Constructors in org.apache.commons.vfs2.provider.tar with parameters of type FileObjectModifierConstructorDescriptionprotected
TarFileSystem
(AbstractFileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) Constructs a new instance. -
Uses of FileObject in org.apache.commons.vfs2.provider.temp
Methods in org.apache.commons.vfs2.provider.temp that return FileObjectModifier and TypeMethodDescriptionTemporaryFileProvider.findFile
(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) Locates a file object, by absolute URI.Methods in org.apache.commons.vfs2.provider.temp with parameters of type FileObjectModifier and TypeMethodDescriptionTemporaryFileProvider.findFile
(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) Locates a file object, by absolute URI. -
Uses of FileObject in org.apache.commons.vfs2.provider.url
Classes in org.apache.commons.vfs2.provider.url that implement FileObjectMethods in org.apache.commons.vfs2.provider.url that return FileObjectModifier and TypeMethodDescriptionprotected FileObject
UrlFileSystem.createFile
(AbstractFileName name) Creates a file object.UrlFileProvider.findFile
(FileObject baseFile, String fileUri, FileSystemOptions fileSystemOptions) Locates a file object, by absolute URI.Methods in org.apache.commons.vfs2.provider.url with parameters of type FileObjectModifier and TypeMethodDescriptionUrlFileProvider.findFile
(FileObject baseFile, String fileUri, FileSystemOptions fileSystemOptions) Locates a file object, by absolute URI. -
Uses of FileObject in org.apache.commons.vfs2.provider.zip
Classes in org.apache.commons.vfs2.provider.zip that implement FileObjectMethods in org.apache.commons.vfs2.provider.zip that return FileObjectModifier and TypeMethodDescriptionprotected FileObject
ZipFileSystem.createFile
(AbstractFileName name) Creates a file object.protected FileObject
ZipFileSystem.getFileFromCache
(FileName name) Gets a cached file.Methods in org.apache.commons.vfs2.provider.zip with parameters of type FileObjectModifier and TypeMethodDescriptionprotected 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.Constructors in org.apache.commons.vfs2.provider.zip with parameters of type FileObjectModifierConstructorDescriptionZipFileSystem
(AbstractFileName rootFileName, FileObject parentLayer, FileSystemOptions fileSystemOptions) Constructs a new instance. -
Uses of FileObject in org.apache.commons.vfs2.util
Methods in org.apache.commons.vfs2.util with parameters of type FileObjectModifier and TypeMethodDescriptionstatic boolean
FileObjectUtils.exists
(FileObject fileObject) Null-safe call toexists()
.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, String charset) Returns the content of a file as a String.static String
FileObjectUtils.getContentAsString
(FileObject file, Charset charset) Gets the content of a file as a String.static void
WeakRefFileListener.installListener
(FileObject file, FileListener listener) Install thelistener
at the givenfile
.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 newProperties
.static Properties
FileObjectUtils.readProperties
(FileObject fileObject, Properties properties) Reads the given file into a new givenProperties
.static void
FileObjectUtils.writeContent
(FileObject file, OutputStream output) Writes the content of a file to an OutputStream.static void
FileObjectUtils.writeContent
(FileObject srcFile, FileObject destFile) Writes the content from a source file to a destination file.Constructors in org.apache.commons.vfs2.util with parameters of type FileObjectModifierConstructorDescriptionprotected
WeakRefFileListener
(FileObject file, FileListener listener) Constructs a new instance.
FileChangeEvent.getFileObject()
.