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 and Description |
---|
AbstractLayeredFileProvider() |
Modifier and Type | Method and Description |
---|---|
FileObject |
createFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system.
|
protected abstract FileSystem |
doCreateFileSystem(String scheme,
FileObject file,
FileSystemOptions fileSystemOptions)
Creates a layered file system.
|
FileObject |
findFile(FileObject baseFile,
String uri,
FileSystemOptions properties)
Locates a file object, by absolute URI.
|
addFileSystem, close, closeFileSystem, findFileSystem, freeUnusedResources, getConfigBuilder, getFileNameParser, parseUri, setFileNameParser
addComponent, removeComponent
getContext, getLogger, init, setContext, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCapabilities, getConfigBuilder, parseUri
public FileObject findFile(FileObject baseFile, String uri, FileSystemOptions properties) throws FileSystemException
findFile
in interface FileProvider
baseFile
- The base FileObject.uri
- The name of the file to locate.properties
- The FileSystemOptions.FileSystemException
- if an error occurs.public FileObject createFileSystem(String scheme, FileObject file, FileSystemOptions fileSystemOptions) throws FileSystemException
createFileSystem
in interface FileProvider
createFileSystem
in class AbstractFileProvider
scheme
- The protocol to use.file
- a FileObject.fileSystemOptions
- Options to access the FileSystem.FileSystemException
- if an error occurs.protected abstract FileSystem doCreateFileSystem(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
Copyright © 2002-2016 The Apache Software Foundation. All Rights Reserved.