Modifier and Type | Field and Description |
---|---|
static FileName[] |
FileName.EMPTY_ARRAY
Empty array of FileName.
|
Modifier and Type | Method and Description |
---|---|
FileName |
FileObject.getName()
Returns the name of this file.
|
FileName |
FileName.getParent()
Gets the file name of the parent of this file.
|
FileName |
FileName.getRoot()
Gets the root of the file system.
|
FileName |
FileSystem.getRootName()
Returns the name of the root file of this file system.
|
FileName |
FileSystemManager.resolveName(FileName root,
String name)
Resolves a name, relative to this file name.
|
FileName |
FileSystemManager.resolveName(FileName root,
String name,
NameScope scope)
Resolves a name, relative to the "root" file name.
|
FileName |
FileSystemManager.resolveURI(String uri)
Resolves the URI to a file name.
|
Modifier and Type | Method and Description |
---|---|
FileObject |
FilesCache.getFile(FileSystem fileSystem,
FileName fileName)
Retrieves a FileObject from the cache by name.
|
String |
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.
|
FileObject |
FileSystem.resolveFile(FileName name)
Finds a file in this file system.
|
FileName |
FileSystemManager.resolveName(FileName root,
String name)
Resolves a name, relative to this file name.
|
FileName |
FileSystemManager.resolveName(FileName root,
String name,
NameScope scope)
Resolves a name, relative to the "root" file name.
|
Modifier and Type | Method and Description |
---|---|
protected ConcurrentMap<FileName,FileObject> |
DefaultFilesCache.getOrCreateFilesystemCache(FileSystem filesystem) |
protected Map<FileName,Reference<FileObject>> |
SoftRefFilesCache.getOrCreateFilesystemCache(FileSystem fileSystem) |
protected Map<FileName,FileObject> |
LRUFilesCache.getOrCreateFilesystemCache(FileSystem filesystem) |
Modifier and Type | Method and Description |
---|---|
FileObject |
NullFilesCache.getFile(FileSystem filesystem,
FileName name) |
FileObject |
DefaultFilesCache.getFile(FileSystem filesystem,
FileName name) |
FileObject |
SoftRefFilesCache.getFile(FileSystem fileSystem,
FileName fileName) |
FileObject |
LRUFilesCache.getFile(FileSystem filesystem,
FileName name) |
void |
NullFilesCache.removeFile(FileSystem filesystem,
FileName name) |
void |
DefaultFilesCache.removeFile(FileSystem filesystem,
FileName name) |
void |
SoftRefFilesCache.removeFile(FileSystem fileSystem,
FileName fileName) |
void |
LRUFilesCache.removeFile(FileSystem filesystem,
FileName name) |
Modifier and Type | Class and Description |
---|---|
class |
VirtualFileName
A simple Filename to hold the scheme for to be created virtual file system.
|
Modifier and Type | Method and Description |
---|---|
FileName |
VirtualFileName.createName(String absPath,
FileType type) |
FileName |
DecoratedFileObject.getName() |
FileName |
DefaultFileSystemManager.resolveName(FileName root,
String path)
Resolves a name, relative to the file.
|
FileName |
DefaultFileSystemManager.resolveName(FileName base,
String name,
NameScope scope)
Resolves a name, relative to the root.
|
FileName |
DefaultFileSystemManager.resolveURI(String uri)
Resolve the uri to a file name.
|
Modifier and Type | Method and Description |
---|---|
FileName |
DefaultFileSystemManager.resolveName(FileName root,
String path)
Resolves a name, relative to the file.
|
FileName |
DefaultFileSystemManager.resolveName(FileName base,
String name,
NameScope scope)
Resolves a name, relative to the root.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractFileName
A default file name implementation.
|
class |
GenericFileName
A file name that represents a 'generic' URI, as per RFC 2396.
|
class |
GenericURLFileName
Generic file name that represents a URL.
|
class |
LayeredFileName
A file name for layered files.
|
class |
URLFileName
Deprecated.
Use
GenericURLFileName as it doesn't depend on Http Client v3 API directly. |
Modifier and Type | Method and Description |
---|---|
abstract FileName |
AbstractFileName.createName(String absolutePath,
FileType fileType)
Factory method for creating name instances.
|
FileName |
GenericFileName.createName(String absPath,
FileType type)
Create a FileName.
|
FileName |
URLFileName.createName(String absPath,
FileType type)
Deprecated.
Create a FileName.
|
FileName |
LayeredFileName.createName(String path,
FileType type)
Creates a FileName.
|
FileName |
GenericURLFileName.createName(String absPath,
FileType type)
Creates a FileName.
|
FileName |
AbstractFileObject.getName()
Returns the name of the file.
|
FileName |
LayeredFileName.getOuterName()
Returns the URI of the outer file.
|
FileName |
AbstractFileName.getParent()
Returns the name of the parent of the file.
|
FileName |
AbstractFileName.getRoot()
find the root of the file system.
|
FileName |
AbstractFileSystem.getRootName()
Returns the name of the root of this file system.
|
FileName |
FileProvider.parseUri(FileName root,
String uri)
Parses the URI into a FileName.
|
FileName |
AbstractFileProvider.parseUri(FileName base,
String uri)
Parses an absolute URI.
|
FileName |
VfsComponentContext.parseURI(String uri)
Parses a URI into a FileName.
|
FileName |
LayeredFileNameParser.parseUri(VfsComponentContext context,
FileName baseFileName,
String fileName)
Parses the base and name into a FileName.
|
FileName |
HostFileNameParser.parseUri(VfsComponentContext context,
FileName base,
String fileName) |
FileName |
FileNameParser.parseUri(VfsComponentContext context,
FileName base,
String uri)
Parses a String into a file name.
|
FileName |
GenericURLFileNameParser.parseUri(VfsComponentContext context,
FileName base,
String fileName) |
FileName |
URLFileNameParser.parseUri(VfsComponentContext context,
FileName base,
String fileName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
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 |
AbstractFileName.compareTo(FileName obj)
Implement Comparable.
|
protected abstract FileSystem |
AbstractOriginatingFileProvider.doCreateFileSystem(FileName rootFileName,
FileSystemOptions fileSystemOptions)
Creates a
FileSystem . |
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.
|
String |
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.
|
protected void |
AbstractFileObject.onChildrenChanged(FileName child,
FileType newType)
Called when the children of this file change.
|
FileName |
FileProvider.parseUri(FileName root,
String uri)
Parses the URI into a FileName.
|
FileName |
AbstractFileProvider.parseUri(FileName base,
String uri)
Parses an absolute URI.
|
FileName |
LayeredFileNameParser.parseUri(VfsComponentContext context,
FileName baseFileName,
String fileName)
Parses the base and name into a FileName.
|
FileName |
HostFileNameParser.parseUri(VfsComponentContext context,
FileName base,
String fileName) |
FileName |
FileNameParser.parseUri(VfsComponentContext context,
FileName base,
String uri)
Parses a String into a file name.
|
FileName |
GenericURLFileNameParser.parseUri(VfsComponentContext context,
FileName base,
String fileName) |
FileName |
URLFileNameParser.parseUri(VfsComponentContext context,
FileName base,
String fileName)
Deprecated.
|
protected void |
AbstractFileSystem.removeFileFromCache(FileName name)
Removes a cached file.
|
FileObject |
AbstractFileSystem.resolveFile(FileName name)
Finds a file in this file system.
|
Constructor and Description |
---|
AbstractFileSystem(FileName rootFileName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions) |
LayeredFileName(String scheme,
FileName outerUri,
String path,
FileType type) |
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
Bzip2FileProvider.createFileSystem(FileName name,
FileObject file,
FileSystemOptions fileSystemOptions) |
Constructor and Description |
---|
Bzip2FileSystem(FileName rootName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Method and Description |
---|---|
protected abstract FileSystem |
CompressedFileFileProvider.createFileSystem(FileName name,
FileObject file,
FileSystemOptions fileSystemOptions) |
Constructor and Description |
---|
CompressedFileFileSystem(FileName rootName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Method and Description |
---|---|
protected 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.
|
Constructor and Description |
---|
FtpFileObject(AbstractFileName name,
FtpFileSystem fileSystem,
FileName rootName) |
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
FtpsFileProvider.doCreateFileSystem(FileName name,
FileSystemOptions fileSystemOptions)
Creates the file system.
|
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
GzipFileProvider.createFileSystem(FileName name,
FileObject file,
FileSystemOptions fileSystemOptions) |
Constructor and Description |
---|
GzipFileSystem(FileName rootName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
HdfsFileProvider.doCreateFileSystem(FileName rootName,
FileSystemOptions fileSystemOptions)
Creates a new HdfsFileSystem instance.
|
FileObject |
HdfsFileSystem.resolveFile(FileName name)
Resolve FileName into FileObject.
|
Constructor and Description |
---|
HdfsFileSystem(FileName rootName,
FileSystemOptions fileSystemOptions)
Construct file system.
|
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
HttpFileProvider.doCreateFileSystem(FileName name,
FileSystemOptions fileSystemOptions)
Creates a
FileSystem . |
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
Http4FileProvider.doCreateFileSystem(FileName name,
FileSystemOptions fileSystemOptions) |
Constructor and Description |
---|
Http4FileSystem(FileName rootName,
FileSystemOptions fileSystemOptions,
org.apache.http.client.HttpClient httpClient,
org.apache.http.client.protocol.HttpClientContext httpClientContext)
Construct
Http4FileSystem . |
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
Http5FileProvider.doCreateFileSystem(FileName name,
FileSystemOptions fileSystemOptions) |
Constructor and Description |
---|
Http5FileSystem(FileName rootName,
FileSystemOptions fileSystemOptions,
org.apache.hc.client5.http.classic.HttpClient httpClient,
org.apache.hc.client5.http.protocol.HttpClientContext httpClientContext)
Construct
Http4FileSystem . |
Modifier and Type | Class and Description |
---|---|
class |
LocalFileName
A local file URI.
|
class |
WindowsFileName
A local file URI.
|
Modifier and Type | Method and Description |
---|---|
protected FileName |
WindowsFileNameParser.createFileName(String scheme,
String rootFile,
String path,
FileType type) |
protected abstract FileName |
LocalFileNameParser.createFileName(String scheme,
String rootFile,
String path,
FileType type) |
protected FileName |
GenericFileNameParser.createFileName(String scheme,
String rootFile,
String path,
FileType type) |
FileName |
WindowsFileName.createName(String path,
FileType type)
Factory method for creating name instances.
|
FileName |
LocalFileName.createName(String path,
FileType type)
Factory method for creating name instances.
|
FileName |
LocalFileNameParser.parseUri(VfsComponentContext context,
FileName base,
String uri) |
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
DefaultLocalFileProvider.doCreateFileSystem(FileName name,
FileSystemOptions fileSystemOptions)
Creates the file system.
|
FileName |
LocalFileNameParser.parseUri(VfsComponentContext context,
FileName base,
String uri) |
Constructor and Description |
---|
LocalFileSystem(FileName rootName,
String rootFile,
FileSystemOptions opts) |
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
RamFileProvider.doCreateFileSystem(FileName name,
FileSystemOptions fileSystemOptions) |
Constructor and Description |
---|
RamFileSystem(FileName rootName,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Class and Description |
---|---|
class |
ResourceFileName
A resource file URI.
|
Modifier and Type | Method and Description |
---|---|
protected FileName |
ResourceFileNameParser.createFileName(String scheme,
String rootFile,
String path,
FileType type) |
FileName |
ResourceFileName.createName(String path,
FileType type)
Factory method for creating name instances.
|
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
SftpFileProvider.doCreateFileSystem(FileName name,
FileSystemOptions fileSystemOptions)
Creates a
FileSystem . |
Modifier and Type | Method and Description |
---|---|
protected 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.
|
Modifier and Type | Class and Description |
---|---|
class |
UrlFileName
A URL FileName.
|
Modifier and Type | Method and Description |
---|---|
FileName |
UrlFileNameParser.parseUri(VfsComponentContext context,
FileName base,
String uri)
Parse a URI.
|
Modifier and Type | Method and Description |
---|---|
protected URL |
UrlFileObject.createURL(FileName name) |
protected boolean |
UrlFileNameParser.isUrlBased(FileName base,
String fileName)
Guess if the given file name is a URL with host or not.
|
FileName |
UrlFileNameParser.parseUri(VfsComponentContext context,
FileName base,
String uri)
Parse a URI.
|
Constructor and Description |
---|
UrlFileSystem(FileName rootName,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.