public class ZipFileSystem extends AbstractFileSystem implements FileSystem
Constructor and Description |
---|
ZipFileSystem(AbstractFileName rootName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCapabilities(Collection<Capability> caps)
Returns the capabilities of this file system.
|
protected FileObject |
createFile(AbstractFileName name)
Creates a file object.
|
protected ZipFile |
createZipFile(File file) |
protected ZipFileObject |
createZipFileObject(AbstractFileName name,
ZipEntry entry) |
protected void |
doCloseCommunicationLink()
Close the underlaying link used to access the files
|
protected ZipFile |
getZipFile() |
void |
init()
Initialises this component.
|
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute
getContext, getLogger, setContext, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addJunction, addListener, getAttribute, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute
public ZipFileSystem(AbstractFileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) throws FileSystemException
FileSystemException
public void init() throws FileSystemException
AbstractFileSystem
init
in interface VfsComponent
init
in class AbstractFileSystem
FileSystemException
- if an error occurs.protected ZipFile getZipFile() throws FileSystemException
FileSystemException
protected ZipFileObject createZipFileObject(AbstractFileName name, ZipEntry entry) throws FileSystemException
FileSystemException
protected ZipFile createZipFile(File file) throws FileSystemException
FileSystemException
protected void doCloseCommunicationLink()
AbstractFileSystem
doCloseCommunicationLink
in class AbstractFileSystem
protected void addCapabilities(Collection<Capability> caps)
addCapabilities
in class AbstractFileSystem
protected FileObject createFile(AbstractFileName name) throws FileSystemException
createFile
in class AbstractFileSystem
FileSystemException
Copyright © 2002-2016 The Apache Software Foundation. All Rights Reserved.