public abstract class AbstractLayeredFileProvider extends AbstractFileProvider
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 fileSystemOptions)
Locates a file object, by absolute URI.
|
addFileSystem, close, closeFileSystem, findFileSystem, freeUnusedResources, getConfigBuilder, getFileNameParser, parseUri, setFileNameParseraddComponent, removeComponentgetContext, getLogger, init, setContext, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCapabilitiespublic FileObject findFile(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) throws FileSystemException
baseFile - The base FileObject.uri - The name of the file to locate.fileSystemOptions - The FileSystemOptions.FileSystemException - if an error occurs.public FileObject createFileSystem(String scheme, FileObject file, FileSystemOptions fileSystemOptions) throws FileSystemException
createFileSystem in interface FileProvidercreateFileSystem in class AbstractFileProviderscheme - 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
This method is called if the file system is not cached.
scheme - The URI scheme.file - The file to create the file system on top of.fileSystemOptions - options for new and underlying file systems.VfsComponent.FileSystemException - if the file system cannot be created.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.