public class TarFileSystem extends AbstractFileSystem
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.compress.archivers.tar.TarArchiveInputStream |
createTarFile(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.
|
protected FileObject |
getFileFromCache(FileName name)
Returns a cached file.
|
InputStream |
getInputStream(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry) |
protected org.apache.commons.compress.archivers.tar.TarArchiveInputStream |
getTarFile() |
void |
init()
Initializes this component.
|
protected void |
putFileToCache(FileObject file)
Adds a file object to the cache.
|
protected void |
removeFileFromCache(FileName name)
remove a cached file.
|
protected void |
resetTarFile() |
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, isOpen, isReleaseable, notifyAllStreamsClosed, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute
getContext, getLogger, setContext, setLogger
protected TarFileSystem(AbstractFileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) throws FileSystemException
FileSystemException
protected void addCapabilities(Collection<Capability> caps)
addCapabilities
in class AbstractFileSystem
caps
- collections of Capabilities, can be immutable.protected FileObject createFile(AbstractFileName name) throws FileSystemException
createFile
in class AbstractFileSystem
name
- name referencing the new file.FileSystemException
protected org.apache.commons.compress.archivers.tar.TarArchiveInputStream createTarFile(File file) throws FileSystemException
FileSystemException
protected TarFileObject createTarFileObject(AbstractFileName name, org.apache.commons.compress.archivers.tar.TarArchiveEntry entry)
protected void doCloseCommunicationLink()
AbstractFileSystem
doCloseCommunicationLink
in class AbstractFileSystem
protected FileObject getFileFromCache(FileName name)
getFileFromCache
in class AbstractFileSystem
name
- name to search for.public InputStream getInputStream(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry) throws FileSystemException
FileSystemException
protected org.apache.commons.compress.archivers.tar.TarArchiveInputStream getTarFile() throws FileSystemException
FileSystemException
public void init() throws FileSystemException
AbstractFileSystem
init
in interface VfsComponent
init
in class AbstractFileSystem
FileSystemException
- if an error occurs.protected void putFileToCache(FileObject file)
putFileToCache
in class AbstractFileSystem
file
- the file to add.protected void removeFileFromCache(FileName name)
removeFileFromCache
in class AbstractFileSystem
name
- The file name to remove.protected void resetTarFile() throws FileSystemException
FileSystemException
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.