Class ZipFileProvider
java.lang.Object
org.apache.commons.vfs2.provider.AbstractVfsComponent
org.apache.commons.vfs2.provider.AbstractVfsContainer
org.apache.commons.vfs2.provider.AbstractFileProvider
org.apache.commons.vfs2.provider.AbstractLayeredFileProvider
org.apache.commons.vfs2.provider.zip.ZipFileProvider
- All Implemented Interfaces:
FileProvider,VfsComponent
- Direct Known Subclasses:
JarFileProvider
A file system provider for ZIP files. Provides read-only file systems.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Collection<Capability>The list of capabilities this provider supports -
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 org.apache.commons.vfs2.provider.AbstractLayeredFileProvider
createFileSystem, findFileMethods inherited from class org.apache.commons.vfs2.provider.AbstractFileProvider
addFileSystem, close, closeFileSystem, findFileSystem, freeUnusedResources, getConfigBuilder, getFileNameParser, parseUri, setFileNameParserMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsContainer
addComponent, removeComponentMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponent
getContext, getLogger, init, setContext, setLogger
-
Field Details
-
capabilities
The list of capabilities this provider supports
-
-
Constructor Details
-
ZipFileProvider
public ZipFileProvider()
-
-
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.fileSystemOptions- options for new and underlying file systems.- Returns:
- The file system.
- Throws:
FileSystemException- if the file system cannot be created.
-
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.- Returns:
- a Collection of the file systems Capabilities.
-