public class TarFileSystem extends AbstractFileSystem implements FileSystem
Modifier | Constructor and Description |
---|---|
protected |
TarFileSystem(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 org.apache.commons.vfs2.provider.tar.TarInputStream |
createTarFile(File file) |
protected TarFileObject |
createTarFileObject(AbstractFileName name,
org.apache.commons.vfs2.provider.tar.TarEntry entry) |
protected void |
doCloseCommunicationLink()
Close the underlaying link used to access the files
|
InputStream |
getInputStream(org.apache.commons.vfs2.provider.tar.TarEntry entry) |
protected org.apache.commons.vfs2.provider.tar.TarInputStream |
getTarFile() |
void |
init()
Initialises this component.
|
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, 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
protected TarFileSystem(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.public InputStream getInputStream(org.apache.commons.vfs2.provider.tar.TarEntry entry) throws FileSystemException
FileSystemException
protected void resetTarFile() throws FileSystemException
FileSystemException
protected org.apache.commons.vfs2.provider.tar.TarInputStream getTarFile() throws FileSystemException
FileSystemException
protected TarFileObject createTarFileObject(AbstractFileName name, org.apache.commons.vfs2.provider.tar.TarEntry entry) throws FileSystemException
FileSystemException
protected org.apache.commons.vfs2.provider.tar.TarInputStream createTarFile(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–2015 The Apache Software Foundation. All rights reserved.