Class TarFileProvider
java.lang.Object
org.apache.commons.vfs.provider.AbstractVfsComponent
org.apache.commons.vfs.provider.AbstractVfsContainer
org.apache.commons.vfs.provider.AbstractFileProvider
org.apache.commons.vfs.provider.AbstractLayeredFileProvider
org.apache.commons.vfs.provider.tar.TarFileProvider
- All Implemented Interfaces:
FileProvider, VfsComponent
A file system provider for Tar files. Provides read-only file systems.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FileSystemdoCreateFileSystem(String scheme, FileObject file, FileSystemOptions fileSystemOptions) Creates a layered file system.Get the filesystem capabilities.
These are the same as on the filesystem, but available before the first filesystem was instanciated.Methods inherited from class AbstractLayeredFileProvider
createFileSystem, findFileMethods inherited from class AbstractFileProvider
addFileSystem, close, closeFileSystem, findFileSystem, freeUnusedResources, getConfigBuilder, getFileNameParser, parseUri, setFileNameParserMethods inherited from class AbstractVfsContainer
addComponent, removeComponentMethods inherited from class AbstractVfsComponent
getContext, getLogger, init, setContext, setLoggerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FileProvider
createFileSystem, findFile, getConfigBuilder, parseUri
-
Field Details
-
capabilities
-
-
Constructor Details
-
TarFileProvider
public TarFileProvider()
-
-
Method Details
-
doCreateFileSystem
protected FileSystem doCreateFileSystem(String scheme, FileObject file, FileSystemOptions fileSystemOptions) throws FileSystemException Creates a layered file system. This method is called if the file system is not cached.- Specified by:
doCreateFileSystemin classAbstractLayeredFileProvider- Parameters:
scheme- The URI scheme.file- The file to create the file system on top of.- Returns:
- The file system.
- Throws:
FileSystemException
-
getCapabilities
Description copied from interface:FileProviderGet the filesystem capabilities.
These are the same as on the filesystem, but available before the first filesystem was instanciated.- Specified by:
getCapabilitiesin interfaceFileProvider
-