Class JarFileSystem
java.lang.Object
org.apache.commons.vfs.provider.AbstractVfsComponent
org.apache.commons.vfs.provider.AbstractFileSystem
org.apache.commons.vfs.provider.zip.ZipFileSystem
org.apache.commons.vfs.provider.jar.JarFileSystem
- All Implemented Interfaces:
FileSystem,VfsComponent
A read-only file system for Jar files.
- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Brian Olsen
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJarFileSystem(FileName rootName, FileObject file, FileSystemOptions fileSystemOptions) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCapabilities(Collection caps) Returns the capabilities of this file system.protected ZipFilecreateZipFile(File file) protected ZipFileObjectcreateZipFileObject(FileName name, ZipEntry entry) getAttribute(String attrName) Retrives the attribute with the specified name.protected ZipFileMethods inherited from class org.apache.commons.vfs.provider.zip.ZipFileSystem
createFile, doCloseCommunicationLink, initMethods inherited from class org.apache.commons.vfs.provider.AbstractFileSystem
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, hasCapability, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttributeMethods inherited from class org.apache.commons.vfs.provider.AbstractVfsComponent
getContext, getLogger, setContext, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.vfs.FileSystem
addJunction, addListener, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, hasCapability, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute
-
Constructor Details
-
JarFileSystem
protected JarFileSystem(FileName rootName, FileObject file, FileSystemOptions fileSystemOptions) throws FileSystemException - Throws:
FileSystemException
-
-
Method Details
-
createZipFile
- Overrides:
createZipFilein classZipFileSystem- Throws:
FileSystemException
-
createZipFileObject
protected ZipFileObject createZipFileObject(FileName name, ZipEntry entry) throws FileSystemException - Overrides:
createZipFileObjectin classZipFileSystem- Throws:
FileSystemException
-
addCapabilities
Returns the capabilities of this file system.- Overrides:
addCapabilitiesin classZipFileSystem
-
getAttribute
Retrives the attribute with the specified name. The default implementation simply throws an exception.- Specified by:
getAttributein interfaceFileSystem- Overrides:
getAttributein classAbstractFileSystem- Parameters:
attrName- The name of the attribute.- Returns:
- The value of the attribute.
- Throws:
FileSystemException- If the file does not exist, or is being written, or if the attribute is unknown.- See Also:
-
getZipFile
- Overrides:
getZipFilein classZipFileSystem- Throws:
FileSystemException
-