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, 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 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 ZipFileSystem
caps
- collections of Capabilities, can be immutable.protected ZipFile createZipFile(File file) throws FileSystemException
ZipFileSystem
createZipFile
in class ZipFileSystem
file
- the underlying file.FileSystemException
- if a file system error occurs.protected ZipFileObject createZipFileObject(AbstractFileName name, ZipEntry entry) throws FileSystemException
ZipFileSystem
createZipFileObject
in class ZipFileSystem
name
- the underlying file.entry
- the Zip entry.FileSystemException
- if a file system error occurs.public Object getAttribute(String attrName) throws FileSystemException
getAttribute
in interface FileSystem
getAttribute
in class AbstractFileSystem
attrName
- The attribute's name.FileSystemException
- if an error occurs.FileContent.getAttribute(java.lang.String)
protected ZipFile getZipFile() throws FileSystemException
ZipFileSystem
getZipFile
in class ZipFileSystem
FileSystemException
- if a file system error occurs.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.