public class JarFileSystem extends ZipFileSystem
| Modifier | Constructor and Description |
|---|---|
protected |
JarFileSystem(AbstractFileName rootFileName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCapabilities(Collection<Capability> caps)
Returns the capabilities of this file system.
|
protected ZipFile |
createZipFile(File file)
Creates a Zip file.
|
protected ZipFileObject |
createZipFileObject(AbstractFileName name,
ZipEntry entry)
Creates a new Zip file object.
|
Object |
getAttribute(String attrName)
Retrieves the attribute with the specified name.
|
protected ZipFile |
getZipFile()
Gets the zip file.
|
createFile, doCloseCommunicationLink, getCharset, getFileFromCache, init, putFileToCache, removeFileFromCache, toStringaddJunction, addListener, close, closeCommunicationLink, decorateFileObject, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, isOpen, isReleaseable, notifyAllStreamsClosed, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttributegetContext, getLogger, setContext, setLoggerprotected JarFileSystem(AbstractFileName rootFileName, FileObject parentLayer, FileSystemOptions fileSystemOptions) throws FileSystemException
rootFileName - The root file name of this file system.parentLayer - The parent layer of this file system.fileSystemOptions - Options to build this file system.FileSystemException - If the parent layer does not exist, or on error replicating the file.protected void addCapabilities(Collection<Capability> caps)
addCapabilities in class ZipFileSystemcaps - collections of Capabilities, can be immutable.protected ZipFile createZipFile(File file) throws FileSystemException
ZipFileSystemcreateZipFile in class ZipFileSystemfile - the underlying file.FileSystemException - if a file system error occurs.protected ZipFileObject createZipFileObject(AbstractFileName name, ZipEntry entry) throws FileSystemException
ZipFileSystemcreateZipFileObject in class ZipFileSystemname - the underlying file.entry - the Zip entry.FileSystemException - if a file system error occurs.public Object getAttribute(String attrName) throws FileSystemException
getAttribute in interface FileSystemgetAttribute in class AbstractFileSystemattrName - The attribute's name.FileSystemException - if an error occurs.FileContent.getAttribute(java.lang.String)protected ZipFile getZipFile() throws FileSystemException
ZipFileSystemgetZipFile in class ZipFileSystemFileSystemException - if a file system error occurs.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.