Uses of Interface
org.apache.commons.vfs2.FileObject
Packages that use FileObject
Package
Description
The public VFS API.
VFS File caching
VFS Events
Apache Commons VFS Examples classes.
Implementations of
org.apache.commons.vfs2.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 HTTP4 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 java.net.URL.
The Zip File Provider.
The VFS Ant Tasks.
Utility classes used by the VFS.
-
Uses of FileObject in org.apache.commons.vfs2
Subinterfaces with type arguments of type FileObject in org.apache.commons.vfs2Modifier and TypeInterfaceDescriptioninterfaceRepresents a file, and is used to access the content and structure of the file.interfaceRepresents a file, and is used to access the content and structure of the file.Fields in org.apache.commons.vfs2 declared as FileObjectModifier and TypeFieldDescriptionstatic final FileObject[]FileObject.EMPTY_ARRAYAn empty immutableFileObjectarray.private final FileObjectFileChangeEvent.fileObjectThe file objectMethods 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()Returns the base folder of the traversal.Returns a child of this file.FileObject.getChildren()Lists the 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()Returns the file (or folder) to be considered.FileChangeEvent.getFileObject()Returns the file that changed.FileObject.getParent()Returns 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.Methods in org.apache.commons.vfs2 with parameters of type FileObjectModifier and TypeMethodDescriptionvoidFileMonitor.addFile(FileObject file) Adds a file to be monitored.voidFileSystem.addJunction(String junctionPoint, FileObject targetFile) Adds a junction to this file system.voidFileSystem.addListener(FileObject file, FileListener listener) Adds a listener on a file in this file system.booleanFileSystemManager.canCreateFileSystem(FileObject file) Determines if a layered file system can be created for a given file.booleanFileObject.canRenameTo(FileObject newfile) Queries the file if it is possible to rename it to newfile.static voidFileUtil.copyContent(FileObject srcFile, FileObject destFile) Deprecated.voidFileObject.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.voidFileObject.moveTo(FileObject destFile) Move this file.voidFilesCache.putFile(FileObject file) Adds a FileObject to the cache.booleanFilesCache.putFileIfAbsent(FileObject file) Adds a FileObject to the cache if it isn't already present.voidFileMonitor.removeFile(FileObject file) Removes a file from being monitored.voidFileSystem.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.longFileContent.write(FileObject file) Writes this content to another FileObject.static voidFileUtil.writeContent(FileObject file, OutputStream output) Deprecated.Method parameters in org.apache.commons.vfs2 with type arguments of type FileObjectModifier and TypeMethodDescriptionvoidFileObject.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 TypeClassDescriptionclassThis decorator refreshes the fileObject data on every call.Subclasses with type arguments of type FileObject in org.apache.commons.vfs2.cacheFields in org.apache.commons.vfs2.cache with type parameters of type FileObjectModifier and TypeFieldDescriptionprivate final ConcurrentMap<FileSystem, ConcurrentMap<FileName, FileObject>> DefaultFilesCache.filesystemCacheThe FileSystem cache.private final ConcurrentMap<FileSystem, Map<FileName, FileObject>> LRUFilesCache.filesystemCacheThe FileSystem cacheprivate final Map<FileSystem, Map<FileName, Reference<FileObject>>> SoftRefFilesCache.fileSystemCacheprivate final ReferenceQueue<FileObject> SoftRefFilesCache.refQueueprivate final Map<Reference<FileObject>, FileSystemAndNameKey> SoftRefFilesCache.refReverseMapMethods 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> refqueue) protected Reference<FileObject> WeakRefFilesCache.createReference(FileObject file, ReferenceQueue<FileObject> refqueue) protected ConcurrentMap<FileName, FileObject> DefaultFilesCache.getOrCreateFilesystemCache(FileSystem filesystem) protected Map<FileName, FileObject> LRUFilesCache.getOrCreateFilesystemCache(FileSystem filesystem) protected Map<FileName, Reference<FileObject>> SoftRefFilesCache.getOrCreateFilesystemCache(FileSystem fileSystem) Methods in org.apache.commons.vfs2.cache with parameters of type FileObjectModifier and TypeMethodDescriptionvoidOnCallRefreshFileObject.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) private StringSoftRefFilesCache.getSafeName(FileObject fileObject) voidOnCallRefreshFileObject.moveTo(FileObject destFile) voidDefaultFilesCache.putFile(FileObject file) voidLRUFilesCache.putFile(FileObject file) voidNullFilesCache.putFile(FileObject file) voidSoftRefFilesCache.putFile(FileObject fileObject) booleanDefaultFilesCache.putFileIfAbsent(FileObject file) booleanLRUFilesCache.putFileIfAbsent(FileObject file) booleanNullFilesCache.putFileIfAbsent(FileObject file) booleanSoftRefFilesCache.putFileIfAbsent(FileObject fileObject) voidAbstractFilesCache.touchFile(FileObject file) Default implementation is a NOOP.voidLRUFilesCache.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> refqueue) protected Reference<FileObject> WeakRefFilesCache.createReference(FileObject file, ReferenceQueue<FileObject> refqueue) voidOnCallRefreshFileObject.findFiles(FileSelector selector, boolean depthwise, List<FileObject> selected) protected booleanLRUFilesCache.MyLRUMap.removeLRU(org.apache.commons.collections4.map.AbstractLinkedMap.LinkEntry<FileName, FileObject> linkEntry) Constructors in org.apache.commons.vfs2.cache with parameters of type FileObject -
Uses of FileObject in org.apache.commons.vfs2.events
Constructors in org.apache.commons.vfs2.events with parameters of type FileObjectModifierConstructorDescriptionChangedEvent(FileObject file) CreateEvent(FileObject file) DeleteEvent(FileObject file) -
Uses of FileObject in org.apache.commons.vfs2.example
Fields in org.apache.commons.vfs2.example declared as FileObjectMethods in org.apache.commons.vfs2.example with parameters of type FileObjectModifier and TypeMethodDescriptionprivate voidShell.listChildren(FileObject dir, boolean recursive, String prefix) Lists the children of a folder. -
Uses of FileObject in org.apache.commons.vfs2.filter
Methods in org.apache.commons.vfs2.filter with parameters of type FileObjectModifier and TypeMethodDescriptionprivate static booleanAgeFileFilter.isFileNewer(FileObject fileObject, long timeMillis) Tests if the specifiedFileis newer than the specified time reference.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 TypeClassDescriptionclassBase class to build a fileObject decoration.classThis decorator synchronize all access to the FileObject.Fields in org.apache.commons.vfs2.impl declared as FileObjectModifier and TypeFieldDescriptionprivate FileObjectDefaultFileSystemManager.baseFileThe base file to use for relative URI.private final FileObjectDecoratedFileObject.decoratedFileObjectprivate final FileObjectDefaultFileMonitor.FileMonitorAgent.fileObjectprivate final FileObjectResource.packageFolderprivate final FileObjectResource.resourceprivate final FileObjectResource.rootprivate final FileObjectPrivilegedFileReplicator.ReplicateAction.srcFileFields in org.apache.commons.vfs2.impl with type parameters of type FileObjectModifier and TypeFieldDescriptionprivate final Stack<FileObject> DefaultFileMonitor.addStackFile objects to be added to the monitor map.private final Stack<FileObject> DefaultFileMonitor.deleteStackFile objects to be removed from the monitor map.private final Map<FileName, FileObject> VirtualFileSystem.junctionsprivate final ArrayList<FileObject> VFSClassLoader.resourcesMethods in org.apache.commons.vfs2.impl that return FileObjectModifier and TypeMethodDescriptionprotected FileObjectVirtualFileSystem.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()Returns the base file used to resolve relative URI.DecoratedFileObject.getChildren()SynchronizedFileObject.getChildren()DecoratedFileObject.getDecoratedFileObject()Resource.getFileObject()Returns the FileObject of the resource.VFSClassLoader.getFileObjects()Provide access to the file objects this class loader represents.Resource.getPackageFolder()Returns the folder for the package containing the resource.DecoratedFileObject.getParent()private FileObjectVFSClassLoader.lookupFileObject(String name) Does a reverse lookup to find the FileObject when we only have the URL.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) Locate a file by URI, use the FileSystemOptions for file-system creation.DefaultFileSystemManager.resolveFile(URI uri) Converts a URI into aFileObject.DefaultFileSystemManager.resolveFile(URL url) Converts 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.DefaultVfsComponentContext.resolveFile(String name, FileSystemOptions fileSystemOptions) Locate a file by name.DefaultVfsComponentContext.resolveFile(FileObject baseFile, String name, FileSystemOptions fileSystemOptions) Locate a file by name.SynchronizedFileObject.resolveFile(String path) SynchronizedFileObject.resolveFile(String name, NameScope scope) DefaultFileSystemManager.toFileObject(File file) Converts a local file into aFileObject.DefaultVfsComponentContext.toFileObject(File file) Returns aFileObjectfor a local file.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 TypeMethodDescriptionvoidDefaultFileMonitor.addFile(FileObject file) Adds a file to be monitored.private voidVFSClassLoader.addFileObjects(FileSystemManager manager, FileObject[] files) Appends the specified FileObjects to the list of FileObjects to search for classes and resources.voidVirtualFileSystem.addJunction(String junctionPoint, FileObject targetFile) Adds a junction to this file system.booleanDefaultFileSystemManager.canCreateFileSystem(FileObject file) Determines if a layered file system can be created for a given file.booleanDecoratedFileObject.canRenameTo(FileObject newfile) intDecoratedFileObject.compareTo(FileObject fo) voidDecoratedFileObject.copyFrom(FileObject srcFile, FileSelector selector) voidSynchronizedFileObject.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.private voidDefaultFileMonitor.FileMonitorAgent.fireAllCreate(FileObject child) Recursively fires create events for all children if recursive descent is enabled.FileTypeMap.getScheme(FileObject fileObject) Gets the scheme for the provider of a layered file system.voidDecoratedFileObject.moveTo(FileObject destFile) voidSynchronizedFileObject.moveTo(FileObject destFile) protected voidDefaultFileMonitor.queueAddFile(FileObject file) Queues a file for addition to be monitored.protected voidDefaultFileMonitor.queueRemoveFile(FileObject file) Queues a file for removal from being monitored.voidDefaultFileMonitor.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.DefaultVfsComponentContext.resolveFile(FileObject baseFile, String name, FileSystemOptions fileSystemOptions) Locate a file by name.voidDefaultFileSystemManager.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 TypeMethodDescriptionvoidDecoratedFileObject.findFiles(FileSelector selector, boolean depthwise, List<FileObject> selected) voidSynchronizedFileObject.findFiles(FileSelector selector, boolean depthwise, List<FileObject> selected) Constructors in org.apache.commons.vfs2.impl with parameters of type FileObjectModifierConstructorDescriptionDecoratedFileObject(FileObject decoratedFileObject) privateFileMonitorAgent(DefaultFileMonitor fm, FileObject file) ReplicateAction(FileObject srcFile, FileSelector selector) Resource(String name, FileObject root, FileObject resource) Creates a new instance.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. -
Uses of FileObject in org.apache.commons.vfs2.operations
Fields in org.apache.commons.vfs2.operations declared as FileObjectModifier and TypeFieldDescriptionprivate final FileObjectAbstractFileOperation.fileObjectFileObject which the FileOperation is operate on.private final FileObjectDefaultFileOperations.fileObjectMethods in org.apache.commons.vfs2.operations that return FileObjectMethods in org.apache.commons.vfs2.operations with parameters of type FileObjectModifier and TypeMethodDescriptionfinal voidAbstractFileOperationProvider.collectOperations(Collection<Class<? extends FileOperation>> operationsList, FileObject file) Gather available operations for the specified FileObject and put them into specified operationsList.voidFileOperationProvider.collectOperations(Collection<Class<? extends FileOperation>> operationsList, FileObject file) Gather available operations for the specified FileObject and put them into specified operationsList.protected abstract voidAbstractFileOperationProvider.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 FileOperationAbstractFileOperationProvider.getOperation(FileObject file, Class<? extends FileOperation> operationClass) FileOperationProvider.getOperation(FileObject file, Class<? extends FileOperation> operationClass) Get implementation for a given FileObject and FileOperation interface.protected abstract FileOperationAbstractFileOperationProvider.instantiateOperation(FileObject file, Class<? extends FileOperation> operationClass) Get operation instance for specified FileOperation subclass.Constructors in org.apache.commons.vfs2.operations with parameters of type FileObjectModifierConstructorDescription -
Uses of FileObject in org.apache.commons.vfs2.operations.vcs
Methods in org.apache.commons.vfs2.operations.vcs with parameters of type FileObject -
Uses of FileObject in org.apache.commons.vfs2.provider
Classes in org.apache.commons.vfs2.provider that implement FileObjectModifier and TypeClassDescriptionclassAbstractFileObject<AFS extends AbstractFileSystem>A partial file object implementation.classDelegateFileObject<AFS extends AbstractFileSystem>A file backed by another file.Fields in org.apache.commons.vfs2.provider declared as FileObjectModifier and TypeFieldDescriptionprivate FileObjectDefaultFileSelectorInfo.baseFolderprivate final FileObjectDefaultFileContent.FileContentInputStream.fileprivate final FileObjectDefaultFileContent.FileContentOutputStream.fileprivate final FileObjectDefaultFileContent.FileRandomAccessContent.fileprivate final FileObjectDefaultFileContent.RawFileContentInputStream.fileprivate FileObjectDefaultFileSelectorInfo.fileprivate FileObjectDelegateFileObject.fileprivate FileObjectAbstractFileObject.parentprivate final FileObjectAbstractFileSystem.parentLayerMethods in org.apache.commons.vfs2.provider that return FileObjectModifier and TypeMethodDescriptionprotected abstract FileObjectAbstractFileSystem.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 FileObjectAbstractFileSystem.decorateFileObject(FileObject file) 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 FileObjectAbstractOriginatingFileProvider.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.DefaultFileSelectorInfo.getBaseFolder()Returns a child of this file.AbstractFileObject.getChildren()Returns the children of the file.DelegateFileObject.getDelegateFile()Get access to the delegated file.DefaultFileContent.getFile()Returns the file that this is the content of.DefaultFileSelectorInfo.getFile()protected FileObjectAbstractFileSystem.getFileFromCache(FileName name) Returns a cached file.AbstractFileObject.getParent()Returns the parent of the file.AbstractFileSystem.getParentLayer()Returns the parent layer if this is a layered file system.AbstractFileSystem.getRoot()Returns 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.private FileObjectAbstractFileObject.resolveFile(FileName child) AbstractFileSystem.resolveFile(String nameStr) Finds a file in this file system.AbstractFileSystem.resolveFile(FileName name) Finds a file in this file system.private FileObjectAbstractFileSystem.resolveFile(FileName name, boolean useCache) VfsComponentContext.resolveFile(String name, FileSystemOptions fileSystemOptions) Resolves a file by name.VfsComponentContext.resolveFile(FileObject baseFile, String name, FileSystemOptions fileSystemOptions) Resolves a file by name.private FileObject[]AbstractFileObject.resolveFiles(FileName[] children) VfsComponentContext.toFileObject(File file) Returns aFileObjectfor 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 TypeMethodDescriptionvoidAbstractFileSystem.addJunction(String junctionPoint, FileObject targetFile) Adds a junction to this file system.voidAbstractFileSystem.addListener(FileObject file, FileListener listener) Adds a listener on a file in this file system.booleanAbstractFileObject.canRenameTo(FileObject newfile) Queries the object if a simple rename to the file name ofnewfileis possible.intAbstractFileObject.compareTo(FileObject file) Compares two FileObjects (ignores case).voidAbstractFileObject.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 FileObjectAbstractFileSystem.decorateFileObject(FileObject file) protected abstract FileSystemAbstractLayeredFileProvider.doCreateFileSystem(String scheme, FileObject file, FileSystemOptions fileSystemOptions) Creates a layered file system.protected booleanAbstractFileObject.doIsSameFile(FileObject destFile) Checks if this fileObject is the same file asdestFilejust with a different name.protected voidAbstractFileObject.doRename(FileObject newFile) Renames the file.protected voidDelegateFileObject.doRename(FileObject newFile) Renames the file.protected FileAbstractFileSystem.doReplicateFile(FileObject file, FileSelector selector) Creates a temporary local copy of a file and its descendants.private FileName[]AbstractFileObject.extractNames(FileObject[] objects) (package private) voidAbstractFileSystem.fileObjectDestroyed(FileObject fileObject) (package private) voidAbstractFileSystem.fileObjectHanded(FileObject fileObject) 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.voidAbstractFileSystem.fireFileChanged(FileObject file) Fires a file changed event.voidAbstractFileSystem.fireFileCreated(FileObject file) Fires a file create event.voidAbstractFileSystem.fireFileDeleted(FileObject file) Fires a file delete event.protected booleanAbstractFileObject.isSameFile(FileObject destFile) Checks if this fileObject is the same file asdestFilejust with a different name.voidAbstractFileObject.moveTo(FileObject destFile) Moves (rename) the file to another one.protected voidAbstractFileSystem.putFileToCache(FileObject file) Adds a file object to the cache.voidAbstractFileSystem.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.voidDefaultFileSelectorInfo.setBaseFolder(FileObject baseFolder) voidDefaultFileSelectorInfo.setFile(FileObject file) voidDelegateFileObject.setFile(FileObject file) Attaches or detaches the target file.longDefaultFileContent.write(FileObject file) Writes this content to another FileObject.Method parameters in org.apache.commons.vfs2.provider with type arguments of type FileObjectModifier and TypeMethodDescriptionvoidAbstractFileObject.findFiles(FileSelector selector, boolean depthwise, List<FileObject> selected) Traverses the descendants of this file, and builds a list of selected files.private static voidAbstractFileObject.traverse(DefaultFileSelectorInfo fileInfo, FileSelector selector, boolean depthwise, List<FileObject> selected) Traverses a file.Constructors in org.apache.commons.vfs2.provider with parameters of type FileObjectModifierConstructorDescriptionprotectedAbstractFileSystem(FileName rootFileName, FileObject parentLayer, FileSystemOptions fileSystemOptions) DelegateFileObject(AbstractFileName name, AFS fileSystem, FileObject file) (package private)FileContentInputStream(FileObject file, InputStream instr) (package private)FileContentInputStream(FileObject file, InputStream instr, int bufferSize) (package private)FileContentOutputStream(FileObject file, OutputStream outstr) (package private)FileContentOutputStream(FileObject file, OutputStream outstr, int bufferSize) (package private)FileRandomAccessContent(FileObject file, RandomAccessContent content) (package private)RawFileContentInputStream(FileObject file, InputStream instr) -
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 FileObjectBzip2FileSystem.createFile(AbstractFileName name) Methods in org.apache.commons.vfs2.provider.bzip2 with parameters of type FileObjectModifier and TypeMethodDescriptionprotected FileSystemBzip2FileProvider.createFileSystem(FileName name, FileObject file, FileSystemOptions fileSystemOptions) Constructors in org.apache.commons.vfs2.provider.bzip2 with parameters of type FileObjectModifierConstructorDescriptionprotectedBzip2FileObject(AbstractFileName name, FileObject container, Bzip2FileSystem fs) protectedBzip2FileObject(AbstractFileName name, FileObject container, CompressedFileFileSystem fs) Deprecated.protectedBzip2FileSystem(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) -
Uses of FileObject in org.apache.commons.vfs2.provider.compressed
Classes in org.apache.commons.vfs2.provider.compressed that implement FileObjectModifier and TypeClassDescriptionclassCompressedFileFileObject<FS extends CompressedFileFileSystem>A compressed file.Fields in org.apache.commons.vfs2.provider.compressed declared as FileObjectMethods in org.apache.commons.vfs2.provider.compressed that return FileObjectModifier and TypeMethodDescriptionprotected abstract FileObjectCompressedFileFileSystem.createFile(AbstractFileName name) Creates a file object.protected FileObjectCompressedFileFileObject.getContainer()Methods in org.apache.commons.vfs2.provider.compressed with parameters of type FileObjectModifier and TypeMethodDescriptionprotected abstract FileSystemCompressedFileFileProvider.createFileSystem(FileName name, FileObject file, FileSystemOptions fileSystemOptions) protected FileSystemCompressedFileFileProvider.doCreateFileSystem(String scheme, FileObject file, FileSystemOptions fileSystemOptions) Creates a layered file system.Constructors in org.apache.commons.vfs2.provider.compressed with parameters of type FileObjectModifierConstructorDescriptionprotectedCompressedFileFileObject(AbstractFileName name, FileObject container, FS fs) protectedCompressedFileFileSystem(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) -
Uses of FileObject in org.apache.commons.vfs2.provider.ftp
Classes in org.apache.commons.vfs2.provider.ftp that implement FileObjectFields in org.apache.commons.vfs2.provider.ftp declared as FileObjectMethods in org.apache.commons.vfs2.provider.ftp that return FileObjectModifier and TypeMethodDescriptionprotected FileObjectFtpFileSystem.createFile(AbstractFileName name) Creates a file object.protected FileObject[]FtpFileObject.doListChildrenResolved()FtpFileObject.getChildren()Returns the file's list of children.private FileObjectFtpFileObject.getLinkDestination()Methods in org.apache.commons.vfs2.provider.ftp with parameters of type FileObjectModifier and TypeMethodDescriptionprotected voidFtpFileObject.doRename(FileObject newFile) Renames the fileprivate booleanFtpFileObject.isCircular(FileObject linkDest) This is an over simplistic implementation for VFS-437. -
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 FileObjectGzipFileSystem.createFile(AbstractFileName name) Methods in org.apache.commons.vfs2.provider.gzip with parameters of type FileObjectModifier and TypeMethodDescriptionprotected FileSystemGzipFileProvider.createFileSystem(FileName name, FileObject file, FileSystemOptions fileSystemOptions) Constructors in org.apache.commons.vfs2.provider.gzip with parameters of type FileObjectModifierConstructorDescriptionprotectedGzipFileObject(AbstractFileName name, FileObject container, CompressedFileFileSystem fs) Deprecated.protectedGzipFileObject(AbstractFileName name, FileObject container, GzipFileSystem fs) protectedGzipFileSystem(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) -
Uses of FileObject in org.apache.commons.vfs2.provider.http4
Classes in org.apache.commons.vfs2.provider.http4 that implement FileObjectModifier and TypeClassDescriptionclassHttp4FileObject<FS extends Http4FileSystem>A file object backed by Apache HttpComponents HttpClient.Methods in org.apache.commons.vfs2.provider.http4 that return FileObjectModifier and TypeMethodDescriptionprotected FileObjectHttp4FileSystem.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 FileSystemJarFileProvider.doCreateFileSystem(String scheme, FileObject file, FileSystemOptions fileSystemOptions) Creates a layered file system.Constructors in org.apache.commons.vfs2.provider.jar with parameters of type FileObjectModifierConstructorDescriptionprotectedJarFileSystem(AbstractFileName rootName, FileObject file, FileSystemOptions fileSystemOptions) -
Uses of FileObject in org.apache.commons.vfs2.provider.local
Classes in org.apache.commons.vfs2.provider.local that implement FileObjectModifier and TypeClassDescriptionclassA file object implementation which uses direct file access.Methods in org.apache.commons.vfs2.provider.local that return FileObjectModifier and TypeMethodDescriptionprotected FileObjectLocalFileSystem.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 booleanLocalFile.doIsSameFile(FileObject destFile) protected voidLocalFile.doRename(FileObject newFile) rename this fileprotected FileLocalFileSystem.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 TypeClassDescriptionclassA 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 FileObjectRamFileSystem.createFile(AbstractFileName name) Methods in org.apache.commons.vfs2.provider.ram with parameters of type FileObjectModifier and TypeMethodDescriptionprotected voidRamFileObject.doRename(FileObject newFile) private voidRamFileSystem.toRamFileObject(FileObject fo, FileObject root) Import the given file with the name relative to the given root -
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 FileObjectSftpFileSystem.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 voidSftpFileObject.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 FileObjectFields in org.apache.commons.vfs2.provider.tar with type parameters of type FileObjectModifier and TypeFieldDescriptionprivate final Map<FileName, FileObject> TarFileSystem.cacheCache doesn't need to be synchronized since it is read-only.Methods in org.apache.commons.vfs2.provider.tar that return FileObjectModifier and TypeMethodDescriptionprotected FileObjectTarFileSystem.createFile(AbstractFileName name) Creates a file object.protected FileObjectTarFileSystem.getFileFromCache(FileName name) Returns a cached file.Methods in org.apache.commons.vfs2.provider.tar with parameters of type FileObjectModifier and TypeMethodDescriptionprotected FileSystemTarFileProvider.doCreateFileSystem(String scheme, FileObject file, FileSystemOptions fileSystemOptions) Creates a layered file system.protected voidTarFileSystem.putFileToCache(FileObject file) Adds a file object to the cache.Constructors in org.apache.commons.vfs2.provider.tar with parameters of type FileObjectModifierConstructorDescriptionprotectedTarFileSystem(AbstractFileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) -
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 FileObjectUrlFileSystem.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 FileObjectFields in org.apache.commons.vfs2.provider.zip with type parameters of type FileObjectModifier and TypeFieldDescriptionprivate final Map<FileName, FileObject> ZipFileSystem.cacheCache doesn't need to be synchronized since it is read-only.Methods in org.apache.commons.vfs2.provider.zip that return FileObjectModifier and TypeMethodDescriptionprotected FileObjectZipFileSystem.createFile(AbstractFileName name) Creates a file object.protected FileObjectZipFileSystem.getFileFromCache(FileName name) Returns a cached file.Methods in org.apache.commons.vfs2.provider.zip with parameters of type FileObjectModifier and TypeMethodDescriptionprotected FileSystemZipFileProvider.doCreateFileSystem(String scheme, FileObject file, FileSystemOptions fileSystemOptions) Creates a layered file system.protected voidZipFileSystem.putFileToCache(FileObject file) Adds a file object to the cache.Constructors in org.apache.commons.vfs2.provider.zip with parameters of type FileObjectModifierConstructorDescriptionZipFileSystem(AbstractFileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) -
Uses of FileObject in org.apache.commons.vfs2.tasks
Methods in org.apache.commons.vfs2.tasks that return FileObjectModifier and TypeMethodDescriptionprotected FileObjectVfsTask.resolveFile(String uri) Resolves a URI to a file, relative to the project's base directory.Methods in org.apache.commons.vfs2.tasks with parameters of type FileObjectModifier and TypeMethodDescriptionprivate voidAbstractSyncTask.handleFile(Set<FileObject> destFiles, FileObject srcFile, FileObject destFile) Handles a single file, checking for collisions where more than one source file maps to the same destination file.private voidAbstractSyncTask.handleFile(FileObject srcFile, FileObject destFile) Handles a single source file.protected voidAbstractSyncTask.handleMissingSourceFile(FileObject destFile) Handles a destination for which there is no corresponding source file.protected voidSyncTask.handleMissingSourceFile(FileObject destFile) Handles a destination for which there is no corresponding source file.protected voidAbstractSyncTask.handleOutOfDateFile(FileObject srcFile, FileObject destFile) Handles an out-of-date file.protected voidCopyTask.handleOutOfDateFile(FileObject srcFile, FileObject destFile) Handles an out-of-date file.protected voidMoveTask.handleOutOfDateFile(FileObject srcFile, FileObject destFile) Handles a single source file.protected voidAbstractSyncTask.handleUpToDateFile(FileObject srcFile, FileObject destFile) Handles an up-to-date file.protected voidCopyTask.handleUpToDateFile(FileObject srcFile, FileObject destFile) Handles an up-to-date file.private voidShowFileTask.logContent(FileObject file, String prefix) Writes the content of the file to Ant log.private voidShowFileTask.showFile(FileObject file, String prefix) Logs the details of a file.Method parameters in org.apache.commons.vfs2.tasks with type arguments of type FileObjectModifier and TypeMethodDescriptionprivate voidAbstractSyncTask.handleFile(Set<FileObject> destFiles, FileObject srcFile, FileObject destFile) Handles a single file, checking for collisions where more than one source file maps to the same destination file. -
Uses of FileObject in org.apache.commons.vfs2.util
Methods in org.apache.commons.vfs2.util with parameters of type FileObjectModifier and TypeMethodDescriptionstatic booleanFileObjectUtils.exists(FileObject fileObject) Null-safe call toFileObject.exists().static AbstractFileObjectFileObjectUtils.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 StringFileObjectUtils.getContentAsString(FileObject file, String charset) Returns the content of a file as a String.static StringFileObjectUtils.getContentAsString(FileObject file, Charset charset) Gets the content of a file as a String.static voidWeakRefFileListener.installListener(FileObject file, FileListener listener) Installs thelistenerat the givenfile.static booleanFileObjectUtils.isInstanceOf(FileObject fileObject, Class<?> wantedClass) Checks if the given FileObject is instance of given class argument.static PropertiesFileObjectUtils.readProperties(FileObject fileObject) Reads the given file into a newProperties.static PropertiesFileObjectUtils.readProperties(FileObject fileObject, Properties properties) Reads the given file into a new givenProperties.static voidFileObjectUtils.writeContent(FileObject file, OutputStream output) Writes the content of a file to an OutputStream.static voidFileObjectUtils.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 FileObjectModifierConstructorDescriptionprotectedWeakRefFileListener(FileObject file, FileListener listener)
FileChangeEvent.getFileObject().