Uses of Interface
org.apache.commons.vfs2.FileName
Packages that use FileName
Package
Description
The public VFS API.
VFS File caching
The standard VFS implementation.
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 Local File Provider.
The RAM File Provider.
The Resource File Provider
The SFTP Provider.
The Tar File Provider.
The Default File Provider, which wraps java.net.URL.
The Zip File Provider.
Utility classes used by the VFS.
-
Uses of FileName in org.apache.commons.vfs2
Fields in org.apache.commons.vfs2 declared as FileNameModifier and TypeFieldDescriptionstatic final FileName[]
FileName.EMPTY_ARRAY
Empty array of FileName.Methods in org.apache.commons.vfs2 that return FileNameModifier and TypeMethodDescriptionFileObject.getName()
Returns the name of this file.FileName.getParent()
Gets the file name of the parent of this file.FileName.getRoot()
Gets the root of the file system.FileSystem.getRootName()
Returns the name of the root file of this file system.FileSystemManager.resolveName
(FileName root, String name) Resolves a name, relative to this file name.FileSystemManager.resolveName
(FileName root, String name, NameScope scope) Resolves a name, relative to the "root" file name.FileSystemManager.resolveURI
(String uri) Resolves the URI to a file name.Methods in org.apache.commons.vfs2 with parameters of type FileNameModifier and TypeMethodDescriptionFilesCache.getFile
(FileSystem fileSystem, FileName fileName) Retrieves a FileObject from the cache by name.FileName.getRelativeName
(FileName name) Converts a file name to a relative name, relative to this file name.boolean
FileName.isAncestor
(FileName ancestor) Tests if another file name is an ancestor of this file name.boolean
FileName.isDescendent
(FileName descendent) Tests if another file name is a descendent of this file name.boolean
FileName.isDescendent
(FileName descendent, NameScope nameScope) Tests if another file name is a descendent of this file name.void
FilesCache.removeFile
(FileSystem fileSystem, FileName name) Removes a file from cache.FileSystem.resolveFile
(FileName name) Finds a file in this file system.FileSystemManager.resolveName
(FileName root, String name) Resolves a name, relative to this file name.FileSystemManager.resolveName
(FileName root, String name, NameScope scope) Resolves a name, relative to the "root" file name. -
Uses of FileName in org.apache.commons.vfs2.cache
Fields in org.apache.commons.vfs2.cache declared as FileNameModifier and TypeFieldDescriptionprivate final FileName
FileSystemAndNameKey.fileName
The FileNameFields in org.apache.commons.vfs2.cache with type parameters of type FileNameModifier and TypeFieldDescriptionprivate final ConcurrentMap<FileSystem,
ConcurrentMap<FileName, FileObject>> DefaultFilesCache.filesystemCache
The FileSystem cache.private final ConcurrentMap<FileSystem,
Map<FileName, FileObject>> LRUFilesCache.filesystemCache
The FileSystem cacheprivate final Map<FileSystem,
Map<FileName, Reference<FileObject>>> SoftRefFilesCache.fileSystemCache
Methods in org.apache.commons.vfs2.cache that return FileNameMethods in org.apache.commons.vfs2.cache that return types with arguments of type FileNameModifier and TypeMethodDescriptionprotected 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 FileNameModifier and TypeMethodDescriptionDefaultFilesCache.getFile
(FileSystem filesystem, FileName name) LRUFilesCache.getFile
(FileSystem filesystem, FileName name) NullFilesCache.getFile
(FileSystem filesystem, FileName name) SoftRefFilesCache.getFile
(FileSystem fileSystem, FileName fileName) private String
SoftRefFilesCache.getSafeName
(FileName fileName) void
DefaultFilesCache.removeFile
(FileSystem filesystem, FileName name) void
LRUFilesCache.removeFile
(FileSystem filesystem, FileName name) void
NullFilesCache.removeFile
(FileSystem filesystem, FileName name) void
SoftRefFilesCache.removeFile
(FileSystem fileSystem, FileName fileName) Method parameters in org.apache.commons.vfs2.cache with type arguments of type FileNameModifier and TypeMethodDescriptionprotected boolean
LRUFilesCache.MyLRUMap.removeLRU
(org.apache.commons.collections4.map.AbstractLinkedMap.LinkEntry<FileName, FileObject> linkEntry) Constructors in org.apache.commons.vfs2.cache with parameters of type FileNameModifierConstructorDescription(package private)
FileSystemAndNameKey
(FileSystem fileSystem, FileName fileName) -
Uses of FileName in org.apache.commons.vfs2.impl
Classes in org.apache.commons.vfs2.impl that implement FileNameModifier and TypeClassDescriptionclass
A simple Filename to hold the scheme for to be created virtual file system.Fields in org.apache.commons.vfs2.impl with type parameters of type FileNameModifier and TypeFieldDescriptionDefaultFileMonitor.FileMonitorAgent.children
private final Map<FileName,
FileObject> VirtualFileSystem.junctions
private final Map<FileName,
DefaultFileMonitor.FileMonitorAgent> DefaultFileMonitor.monitorMap
Map from FileName to FileObject being monitored.Methods in org.apache.commons.vfs2.impl that return FileNameModifier and TypeMethodDescriptionVirtualFileName.createName
(String absPath, FileType type) private FileName
VirtualFileSystem.getJunctionForFile
(FileName name) Locates the junction point for the junction containing the given file.DecoratedFileObject.getName()
DefaultFileSystemManager.resolveName
(FileName root, String path) Resolves a name, relative to the file.DefaultFileSystemManager.resolveName
(FileName base, String name, NameScope scope) Resolves a name, relative to the root.DefaultFileSystemManager.resolveURI
(String uri) Resolve the uri to a file name.Methods in org.apache.commons.vfs2.impl with parameters of type FileNameModifier and TypeMethodDescriptionprivate FileName
VirtualFileSystem.getJunctionForFile
(FileName name) Locates the junction point for the junction containing the given file.DefaultFileSystemManager.resolveName
(FileName root, String path) Resolves a name, relative to the file.DefaultFileSystemManager.resolveName
(FileName base, String name, NameScope scope) Resolves a name, relative to the root. -
Uses of FileName in org.apache.commons.vfs2.provider
Classes in org.apache.commons.vfs2.provider that implement FileNameModifier and TypeClassDescriptionclass
A default file name implementation.class
A file name that represents a 'generic' URI, as per RFC 2396.class
Generic file name that represents a URL.class
A file name for layered files.class
Deprecated.Fields in org.apache.commons.vfs2.provider declared as FileNameModifier and TypeFieldDescriptionprivate FileName[]
AbstractFileObject.children
private final FileName
LayeredFileName.outerUri
private final FileName
AbstractFileSystem.rootName
The "root" of the file system.Fields in org.apache.commons.vfs2.provider with type parameters of type FileNameModifier and TypeFieldDescriptionprivate final Map<FileName,
ArrayList<FileListener>> AbstractFileSystem.listenerMap
Map from FileName to an ArrayList of listeners for that file.Methods in org.apache.commons.vfs2.provider that return FileNameModifier and TypeMethodDescriptionabstract FileName
AbstractFileName.createName
(String absolutePath, FileType fileType) Factory method for creating name instances.GenericFileName.createName
(String absPath, FileType type) Create a FileName.GenericURLFileName.createName
(String absPath, FileType type) Creates a FileName.LayeredFileName.createName
(String path, FileType type) Creates a FileName.URLFileName.createName
(String absPath, FileType type) Deprecated.Create a FileName.private FileName[]
AbstractFileObject.extractNames
(FileObject[] objects) AbstractFileObject.getName()
Returns the name of the file.LayeredFileName.getOuterName()
Returns the URI of the outer file.AbstractFileName.getParent()
Returns the name of the parent of the file.AbstractFileName.getRoot()
find the root of the file system.AbstractFileSystem.getRootName()
Returns the name of the root of this file system.Parses an absolute URI.FileNameParser.parseUri
(VfsComponentContext context, FileName base, String uri) Parses a String into a file name.Parses the URI into a FileName.GenericURLFileNameParser.parseUri
(VfsComponentContext context, FileName base, String fileName) HostFileNameParser.parseUri
(VfsComponentContext context, FileName base, String fileName) LayeredFileNameParser.parseUri
(VfsComponentContext context, FileName baseFileName, String fileName) Parses the base and name into a FileName.URLFileNameParser.parseUri
(VfsComponentContext context, FileName base, String fileName) Deprecated.Parses a URI into a FileName.Methods in org.apache.commons.vfs2.provider with parameters of type FileNameModifier and TypeMethodDescriptionvoid
DelegateFileObject.attachChild
(FileName baseName, FileType type) Adds a child to this file.protected void
AbstractFileObject.childrenChanged
(FileName childName, FileType newType) Notifies the file that its children have changed.int
Implement Comparable.protected abstract FileSystem
AbstractOriginatingFileProvider.doCreateFileSystem
(FileName rootFileName, FileSystemOptions fileSystemOptions) Creates aFileSystem
.protected FileObject
AbstractOriginatingFileProvider.findFile
(FileName fileName, FileSystemOptions fileSystemOptions) Locates a file from its parsed URI.protected FileObject
AbstractFileSystem.getFileFromCache
(FileName name) Returns a cached file.protected FileSystem
AbstractOriginatingFileProvider.getFileSystem
(FileName rootFileName, FileSystemOptions fileSystemOptions) Returns the FileSystem associated with the specified root.AbstractFileName.getRelativeName
(FileName name) Converts a file name to a relative name, relative to this file name.boolean
AbstractFileName.isAncestor
(FileName ancestor) Determines if another file name is an ancestor of this file name.boolean
AbstractFileName.isDescendent
(FileName descendent) Determines if another file name is a descendent of this file name.boolean
AbstractFileName.isDescendent
(FileName descendent, NameScope scope) Determines if another file name is a descendent of this file name.private void
AbstractFileObject.notifyParent
(FileName childName, FileType newType) Notify the parent of a change to its children, when a child is created or deleted.protected void
AbstractFileObject.onChildrenChanged
(FileName child, FileType newType) Called when the children of this file change.Parses an absolute URI.FileNameParser.parseUri
(VfsComponentContext context, FileName base, String uri) Parses a String into a file name.Parses the URI into a FileName.GenericURLFileNameParser.parseUri
(VfsComponentContext context, FileName base, String fileName) HostFileNameParser.parseUri
(VfsComponentContext context, FileName base, String fileName) LayeredFileNameParser.parseUri
(VfsComponentContext context, FileName baseFileName, String fileName) Parses the base and name into a FileName.URLFileNameParser.parseUri
(VfsComponentContext context, FileName base, String fileName) Deprecated.protected void
AbstractFileSystem.removeFileFromCache
(FileName name) Removes a cached file.private FileObject
AbstractFileObject.resolveFile
(FileName child) AbstractFileSystem.resolveFile
(FileName name) Finds a file in this file system.private FileObject
AbstractFileSystem.resolveFile
(FileName name, boolean useCache) private FileObject[]
AbstractFileObject.resolveFiles
(FileName[] children) Constructors in org.apache.commons.vfs2.provider with parameters of type FileNameModifierConstructorDescriptionprotected
AbstractFileSystem
(FileName rootFileName, FileObject parentLayer, FileSystemOptions fileSystemOptions) LayeredFileName
(String scheme, FileName outerUri, String path, FileType type) -
Uses of FileName in org.apache.commons.vfs2.provider.bzip2
Methods in org.apache.commons.vfs2.provider.bzip2 with parameters of type FileNameModifier and TypeMethodDescriptionprotected FileSystem
Bzip2FileProvider.createFileSystem
(FileName name, FileObject file, FileSystemOptions fileSystemOptions) Constructors in org.apache.commons.vfs2.provider.bzip2 with parameters of type FileNameModifierConstructorDescriptionprotected
Bzip2FileSystem
(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) -
Uses of FileName in org.apache.commons.vfs2.provider.compressed
Methods in org.apache.commons.vfs2.provider.compressed with parameters of type FileNameModifier and TypeMethodDescriptionprotected abstract FileSystem
CompressedFileFileProvider.createFileSystem
(FileName name, FileObject file, FileSystemOptions fileSystemOptions) Constructors in org.apache.commons.vfs2.provider.compressed with parameters of type FileNameModifierConstructorDescriptionprotected
CompressedFileFileSystem
(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) -
Uses of FileName in org.apache.commons.vfs2.provider.ftp
Methods in org.apache.commons.vfs2.provider.ftp with parameters of type FileNameModifier and TypeMethodDescriptionprotected FileSystem
FtpFileProvider.doCreateFileSystem
(FileName name, FileSystemOptions fileSystemOptions) Creates the file system.protected void
FtpFileObject.onChildrenChanged
(FileName child, FileType newType) Called when the children of this file change.Constructors in org.apache.commons.vfs2.provider.ftp with parameters of type FileNameModifierConstructorDescriptionprotected
FtpFileObject
(AbstractFileName name, FtpFileSystem fileSystem, FileName rootName) -
Uses of FileName in org.apache.commons.vfs2.provider.gzip
Methods in org.apache.commons.vfs2.provider.gzip with parameters of type FileNameModifier and TypeMethodDescriptionprotected FileSystem
GzipFileProvider.createFileSystem
(FileName name, FileObject file, FileSystemOptions fileSystemOptions) Constructors in org.apache.commons.vfs2.provider.gzip with parameters of type FileNameModifierConstructorDescriptionprotected
GzipFileSystem
(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) -
Uses of FileName in org.apache.commons.vfs2.provider.http4
Methods in org.apache.commons.vfs2.provider.http4 with parameters of type FileNameModifier and TypeMethodDescriptionprotected FileSystem
Http4FileProvider.doCreateFileSystem
(FileName name, FileSystemOptions fileSystemOptions) Constructors in org.apache.commons.vfs2.provider.http4 with parameters of type FileNameModifierConstructorDescriptionprotected
Http4FileSystem
(FileName rootName, FileSystemOptions fileSystemOptions, org.apache.http.client.HttpClient httpClient, org.apache.http.client.protocol.HttpClientContext httpClientContext) ConstructHttp4FileSystem
. -
Uses of FileName in org.apache.commons.vfs2.provider.local
Classes in org.apache.commons.vfs2.provider.local that implement FileNameModifier and TypeClassDescriptionclass
A local file URI.class
A local file URI.Methods in org.apache.commons.vfs2.provider.local that return FileNameModifier and TypeMethodDescriptionprotected FileName
GenericFileNameParser.createFileName
(String scheme, String rootFile, String path, FileType type) protected abstract FileName
LocalFileNameParser.createFileName
(String scheme, String rootFile, String path, FileType type) protected FileName
WindowsFileNameParser.createFileName
(String scheme, String rootFile, String path, FileType type) LocalFileName.createName
(String path, FileType type) Factory method for creating name instances.WindowsFileName.createName
(String path, FileType type) Factory method for creating name instances.LocalFileNameParser.parseUri
(VfsComponentContext context, FileName base, String uri) Methods in org.apache.commons.vfs2.provider.local with parameters of type FileNameModifier and TypeMethodDescriptionprotected FileSystem
DefaultLocalFileProvider.doCreateFileSystem
(FileName name, FileSystemOptions fileSystemOptions) Creates the file system.private String[]
LocalFileNameParser.getSchemes
(VfsComponentContext context, FileName base, String uri) LocalFileNameParser.parseUri
(VfsComponentContext context, FileName base, String uri) Constructors in org.apache.commons.vfs2.provider.local with parameters of type FileNameModifierConstructorDescriptionLocalFileSystem
(FileName rootName, String rootFile, FileSystemOptions opts) -
Uses of FileName in org.apache.commons.vfs2.provider.ram
Fields in org.apache.commons.vfs2.provider.ram declared as FileNameFields in org.apache.commons.vfs2.provider.ram with type parameters of type FileNameModifier and TypeFieldDescriptionprivate final Map<FileName,
RamFileData> RamFileSystem.cache
Cache of RAM File DataMethods in org.apache.commons.vfs2.provider.ram that return FileNameMethods in org.apache.commons.vfs2.provider.ram with parameters of type FileNameModifier and TypeMethodDescriptionprotected FileSystem
RamFileProvider.doCreateFileSystem
(FileName name, FileSystemOptions fileSystemOptions) (package private) String[]
RamFileSystem.listChildren
(FileName name) Constructors in org.apache.commons.vfs2.provider.ram with parameters of type FileNameModifierConstructorDescriptionRamFileData
(FileName name) Constructor.protected
RamFileSystem
(FileName rootName, FileSystemOptions fileSystemOptions) -
Uses of FileName in org.apache.commons.vfs2.provider.res
Classes in org.apache.commons.vfs2.provider.res that implement FileNameMethods in org.apache.commons.vfs2.provider.res that return FileNameModifier and TypeMethodDescriptionprotected FileName
ResourceFileNameParser.createFileName
(String scheme, String rootFile, String path, FileType type) ResourceFileName.createName
(String path, FileType type) Factory method for creating name instances. -
Uses of FileName in org.apache.commons.vfs2.provider.sftp
Methods in org.apache.commons.vfs2.provider.sftp with parameters of type FileNameModifier and TypeMethodDescriptionprotected FileSystem
SftpFileProvider.doCreateFileSystem
(FileName name, FileSystemOptions fileSystemOptions) Creates aFileSystem
. -
Uses of FileName in org.apache.commons.vfs2.provider.tar
Fields in org.apache.commons.vfs2.provider.tar with type parameters of type FileNameModifier and TypeFieldDescriptionprivate final Map<FileName,
FileObject> TarFileSystem.cache
Cache doesn't need to be synchronized since it is read-only.Methods in org.apache.commons.vfs2.provider.tar with parameters of type FileNameModifier and TypeMethodDescriptionprotected void
TarFileObject.attachChild
(FileName childName) Attaches a child.protected FileObject
TarFileSystem.getFileFromCache
(FileName name) Returns a cached file.protected void
TarFileSystem.removeFileFromCache
(FileName name) remove a cached file. -
Uses of FileName in org.apache.commons.vfs2.provider.url
Classes in org.apache.commons.vfs2.provider.url that implement FileNameMethods in org.apache.commons.vfs2.provider.url that return FileNameModifier and TypeMethodDescriptionUrlFileNameParser.parseUri
(VfsComponentContext context, FileName base, String uri) Parse a URI.Methods in org.apache.commons.vfs2.provider.url with parameters of type FileNameModifier and TypeMethodDescriptionprotected URL
protected boolean
UrlFileNameParser.isUrlBased
(FileName base, String fileName) Guess if the given file name is a URL with host or not.UrlFileNameParser.parseUri
(VfsComponentContext context, FileName base, String uri) Parse a URI.Constructors in org.apache.commons.vfs2.provider.url with parameters of type FileNameModifierConstructorDescriptionprotected
UrlFileSystem
(FileName rootName, FileSystemOptions fileSystemOptions) -
Uses of FileName in org.apache.commons.vfs2.provider.zip
Fields in org.apache.commons.vfs2.provider.zip with type parameters of type FileNameModifier and TypeFieldDescriptionprivate final Map<FileName,
FileObject> ZipFileSystem.cache
Cache doesn't need to be synchronized since it is read-only.Methods in org.apache.commons.vfs2.provider.zip with parameters of type FileNameModifier and TypeMethodDescriptionvoid
ZipFileObject.attachChild
(FileName childName) Attaches a child.protected FileObject
ZipFileSystem.getFileFromCache
(FileName name) Returns a cached file.protected void
ZipFileSystem.removeFileFromCache
(FileName name) remove a cached file. -
Uses of FileName in org.apache.commons.vfs2.util
Fields in org.apache.commons.vfs2.util declared as FileName
GenericURLFileName
as it doesn't depend on Http Client v3 API directly.