public class JarFileSystem extends ZipFileSystem
Modifier and Type | Field and Description |
---|---|
private java.util.jar.Attributes |
attributes |
Modifier | Constructor and Description |
---|---|
protected |
JarFileSystem(AbstractFileName rootName,
FileObject file,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCapabilities(java.util.Collection<Capability> caps)
Returns the capabilities of this file system.
|
protected java.util.zip.ZipFile |
createZipFile(java.io.File file) |
protected ZipFileObject |
createZipFileObject(AbstractFileName name,
java.util.zip.ZipEntry entry) |
(package private) java.lang.Object |
getAttribute(java.util.jar.Attributes.Name attrName) |
java.lang.Object |
getAttribute(java.lang.String attrName)
Retrives the attribute with the specified name.
|
(package private) java.util.jar.Attributes |
getAttributes() |
protected java.util.zip.ZipFile |
getZipFile() |
(package private) java.util.jar.Attributes.Name |
lookupName(java.lang.String attrName) |
createFile, doCloseCommunicationLink, getCharset, getFileFromCache, init, putFileToCache, removeFileFromCache, toString
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, isOpen, isReleaseable, notifyAllStreamsClosed, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute
getContext, getLogger, setContext, setLogger
protected JarFileSystem(AbstractFileName rootName, FileObject file, FileSystemOptions fileSystemOptions) throws FileSystemException
FileSystemException
protected java.util.zip.ZipFile createZipFile(java.io.File file) throws FileSystemException
createZipFile
in class ZipFileSystem
FileSystemException
protected ZipFileObject createZipFileObject(AbstractFileName name, java.util.zip.ZipEntry entry) throws FileSystemException
createZipFileObject
in class ZipFileSystem
FileSystemException
protected void addCapabilities(java.util.Collection<Capability> caps)
addCapabilities
in class ZipFileSystem
caps
- collections of Capabilities, can be immutable.java.util.jar.Attributes getAttributes() throws java.io.IOException
java.io.IOException
java.lang.Object getAttribute(java.util.jar.Attributes.Name attrName) throws FileSystemException
FileSystemException
java.util.jar.Attributes.Name lookupName(java.lang.String attrName)
public java.lang.Object getAttribute(java.lang.String attrName) throws FileSystemException
getAttribute
in interface FileSystem
getAttribute
in class AbstractFileSystem
attrName
- The attiribute's name.FileSystemException
- if an error occurs.FileContent.getAttribute(java.lang.String)
protected java.util.zip.ZipFile getZipFile() throws FileSystemException
getZipFile
in class ZipFileSystem
FileSystemException