Class CompressedFileFileSystem
java.lang.Object
org.apache.commons.vfs2.provider.AbstractVfsComponent
org.apache.commons.vfs2.provider.AbstractFileSystem
org.apache.commons.vfs2.provider.compressed.CompressedFileFileSystem
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- FileSystem,- VfsComponent
- Direct Known Subclasses:
- Bzip2FileSystem,- GzipFileSystem
A read-only file system for compressed files.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCompressedFileFileSystem(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) Constructs a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract voidaddCapabilities(Collection<Capability> caps) Returns the capabilities of this file system.protected abstract FileObjectcreateFile(AbstractFileName name) Creates a file object.Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileSystemaddJunction, addListener, close, closeCommunicationLink, decorateFileObject, doCloseCommunicationLink, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttributeMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponentgetContext, getLogger, setContext, setLogger
- 
Constructor Details- 
CompressedFileFileSystemprotected CompressedFileFileSystem(FileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) Constructs a new instance.- Parameters:
- rootName- The root file name of this file system.
- parentLayer- The parent layer of this file system.
- fileSystemOptions- Options to build this file system.
 
 
- 
- 
Method Details- 
addCapabilitiesReturns the capabilities of this file system.- Specified by:
- addCapabilitiesin class- AbstractFileSystem
- Parameters:
- caps- collections of Capabilities, can be immutable.
 
- 
createFileCreates a file object.- Specified by:
- createFilein class- AbstractFileSystem
- Parameters:
- name- name referencing the new file.
- Returns:
- new created FileObject.
- Throws:
- FileSystemException
 
 
-