public class TarFileSystem extends AbstractFileSystem
| Modifier and Type | Field and Description |
|---|---|
private static int |
DEFAULT_INDEX_SIZE |
private java.io.File |
file |
private static org.apache.commons.logging.Log |
LOG |
private org.apache.commons.compress.archivers.tar.TarArchiveInputStream |
tarFile |
| Modifier | Constructor and Description |
|---|---|
protected |
TarFileSystem(AbstractFileName rootName,
FileObject parentLayer,
FileSystemOptions fileSystemOptions) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCapabilities(java.util.Collection<Capability> caps)
Returns the capabilities of this file system.
|
protected FileObject |
createFile(AbstractFileName name)
Creates a file object.
|
protected org.apache.commons.compress.archivers.tar.TarArchiveInputStream |
createTarFile(java.io.File file) |
protected TarFileObject |
createTarFileObject(AbstractFileName name,
org.apache.commons.compress.archivers.tar.TarArchiveEntry entry) |
protected void |
doCloseCommunicationLink()
Closes the underlying link used to access the files.
|
java.io.InputStream |
getInputStream(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry) |
protected org.apache.commons.compress.archivers.tar.TarArchiveInputStream |
getTarFile() |
void |
init()
Initializes this component.
|
private void |
recreateTarFile() |
protected void |
resetTarFile() |
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, setAttributegetContext, getLogger, setContext, setLoggerprivate static final int DEFAULT_INDEX_SIZE
private static final org.apache.commons.logging.Log LOG
private final java.io.File file
private org.apache.commons.compress.archivers.tar.TarArchiveInputStream tarFile
protected TarFileSystem(AbstractFileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) throws FileSystemException
FileSystemExceptionpublic void init()
throws FileSystemException
AbstractFileSysteminit in interface VfsComponentinit in class AbstractFileSystemFileSystemException - if an error occurs.public java.io.InputStream getInputStream(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry)
throws FileSystemException
FileSystemExceptionprotected void resetTarFile()
throws FileSystemException
FileSystemExceptionprivate void recreateTarFile()
throws FileSystemException
FileSystemExceptionprotected org.apache.commons.compress.archivers.tar.TarArchiveInputStream getTarFile()
throws FileSystemException
FileSystemExceptionprotected TarFileObject createTarFileObject(AbstractFileName name, org.apache.commons.compress.archivers.tar.TarArchiveEntry entry) throws FileSystemException
FileSystemExceptionprotected org.apache.commons.compress.archivers.tar.TarArchiveInputStream createTarFile(java.io.File file)
throws FileSystemException
FileSystemExceptionprotected void doCloseCommunicationLink()
AbstractFileSystemdoCloseCommunicationLink in class AbstractFileSystemprotected void addCapabilities(java.util.Collection<Capability> caps)
addCapabilities in class AbstractFileSystemcaps - collections of Capabilities, can be immutable.protected FileObject createFile(AbstractFileName name) throws FileSystemException
createFile in class AbstractFileSystemname - name referencing the new file.FileSystemException