FileProvider, VfsComponentAbstractLayeredFileProvider, AbstractOriginatingFileProvider, CompositeFileProvider, ResourceFileProvider, TemporaryFileProvider, UrlFileProviderpublic abstract class AbstractFileProvider extends AbstractVfsContainer implements FileProvider
FileProvider implementation. Takes care of managing the file systems created by the provider.| Constructor | Description |
|---|---|
AbstractFileProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addFileSystem(java.lang.Comparable<?> key,
FileSystem fs) |
Adds a file system to those cached by this provider.
|
void |
close() |
Closes the file systems created by this provider.
|
void |
closeFileSystem(FileSystem filesystem) |
Close the FileSystem.
|
FileObject |
createFileSystem(java.lang.String scheme,
FileObject file,
FileSystemOptions properties) |
Creates a layered file system.
|
protected FileSystem |
findFileSystem(java.lang.Comparable<?> key,
FileSystemOptions fileSystemProps) |
Locates a cached file system.
|
void |
freeUnusedResources() |
Free unused resources.
|
FileSystemConfigBuilder |
getConfigBuilder() |
Returns the FileSystemConfigBuidler.
|
protected FileNameParser |
getFileNameParser() |
|
FileName |
parseUri(FileName base,
java.lang.String uri) |
Parses an absolute URI.
|
protected void |
setFileNameParser(FileNameParser parser) |
getContext, getLogger, init, setContext, setLoggeraddComponent, removeComponentfindFile, getCapabilitiespublic AbstractFileProvider()
protected FileNameParser getFileNameParser()
protected void setFileNameParser(FileNameParser parser)
public void close()
close in interface VfsComponentclose in class AbstractVfsContainerpublic FileObject createFileSystem(java.lang.String scheme, FileObject file, FileSystemOptions properties) throws FileSystemException
createFileSystem in interface FileProviderscheme - The protocol to use to access the file.file - a FileObject.properties - Options to the file system.FileSystemException - if an error occurs.protected void addFileSystem(java.lang.Comparable<?> key, FileSystem fs) throws FileSystemException
The file system may implement VfsComponent, in which case it is initialised.
key - The root file of the file system, part of the cache key.fs - the file system to add.FileSystemException - if any error occurs.protected FileSystem findFileSystem(java.lang.Comparable<?> key, FileSystemOptions fileSystemProps)
key - The root file of the file system, part of the cache key.fileSystemProps - file system options the file system instance must have.public FileSystemConfigBuilder getConfigBuilder()
getConfigBuilder in interface FileProviderpublic void freeUnusedResources()
public void closeFileSystem(FileSystem filesystem)
filesystem - The FileSystem to close.public FileName parseUri(FileName base, java.lang.String uri) throws FileSystemException
parseUri in interface FileProviderbase - The base file - if null the uri needs to be absoluteuri - The URI to parse.FileSystemException - if an error occurs.