FileProvider
, VfsComponent
CompressedFileFileProvider
, TarFileProvider
, ZipFileProvider
public abstract class AbstractLayeredFileProvider extends AbstractFileProvider implements FileProvider
FileProvider
that is layered on top of another, such as the
contents of a zip or tar file.Constructor | Description |
---|---|
AbstractLayeredFileProvider() |
Modifier and Type | Method | Description |
---|---|---|
FileObject |
createFileSystem(java.lang.String scheme,
FileObject file,
FileSystemOptions fileSystemOptions) |
Creates a layered file system.
|
protected abstract FileSystem |
doCreateFileSystem(java.lang.String scheme,
FileObject file,
FileSystemOptions fileSystemOptions) |
Creates a layered file system.
|
FileObject |
findFile(FileObject baseFile,
java.lang.String uri,
FileSystemOptions properties) |
Locates a file object, by absolute URI.
|
addFileSystem, close, closeFileSystem, findFileSystem, freeUnusedResources, getConfigBuilder, getFileNameParser, parseUri, setFileNameParser
getContext, getLogger, init, setContext, setLogger
addComponent, removeComponent
getCapabilities, getConfigBuilder, parseUri
public FileObject findFile(FileObject baseFile, java.lang.String uri, FileSystemOptions properties) throws FileSystemException
findFile
in interface FileProvider
baseFile
- The base file to use for resolving the individual parts of
a compound URI.uri
- The absolute URI of the file to find.FileSystemException
public FileObject createFileSystem(java.lang.String scheme, FileObject file, FileSystemOptions fileSystemOptions) throws FileSystemException
createFileSystem
in interface FileProvider
createFileSystem
in class AbstractFileProvider
scheme
- The URI scheme for the layered file system.file
- The file to build the file system on.FileSystemException
protected abstract FileSystem doCreateFileSystem(java.lang.String scheme, FileObject file, FileSystemOptions fileSystemOptions) throws FileSystemException
VfsComponent
.scheme
- The URI scheme.file
- The file to create the file system on top of.FileSystemException