Class JarFileProvider
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
org.apache.commons.vfs2.provider.jar.JarFileProvider
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- FileProvider,- VfsComponent
A file system provider for Jar files. Provides read-only file systems. This provides access to Jar specific features
 like Signing and Manifest Attributes.
- 
Field SummaryFields inherited from class org.apache.commons.vfs2.provider.zip.ZipFileProvidercapabilities
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected FileSystemdoCreateFileSystem(String scheme, FileObject file, FileSystemOptions fileSystemOptions) Creates a layered file system.Gets the file system capabilities.Methods inherited from class org.apache.commons.vfs2.provider.zip.ZipFileProvidergetConfigBuilderMethods inherited from class org.apache.commons.vfs2.provider.AbstractLayeredFileProvidercreateFileSystem, findFileMethods inherited from class org.apache.commons.vfs2.provider.AbstractFileProvideraddFileSystem, close, closeFileSystem, findFileSystem, freeUnusedResources, getFileNameParser, parseUri, setFileNameParserMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsContaineraddComponent, removeComponentMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponentgetContext, getLogger, init, setContext, setLogger
- 
Constructor Details- 
JarFileProviderpublic JarFileProvider()Constructs a new instance.
 
- 
- 
Method Details- 
doCreateFileSystemprotected 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.- Overrides:
- doCreateFileSystemin class- ZipFileProvider
- 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.
 
- 
getCapabilitiesDescription copied from interface:FileProviderGets the file system capabilities.These are the same as on the file system, but available before the first file system was instantiated. - Specified by:
- getCapabilitiesin interface- FileProvider
- Overrides:
- getCapabilitiesin class- ZipFileProvider
- Returns:
- a Collection of the file systems Capabilities.
 
 
-