|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.entityfs.cap.compression.gzip.GZipCompressionCapabilityProvider
public class GZipCompressionCapabilityProvider
This capability provider provides the
FSCCompression
capability by
compressing all file entities using the gzip compression algorithm.
It disables file system and entity capabilities that would allow clients to access the underlying files since those no longer contains data in the same format as the entities do.
This capability provider does not work with Zip file-based file systems (the Zip and Jar file systems) since they recognize gzip:ed entries as such, making them appear magically unzipped for the file system client.
FSCCompression
Constructor Summary | |
---|---|
GZipCompressionCapabilityProvider()
|
Method Summary | |
---|---|
boolean |
isReadOnlyFileSystemSupported()
|
boolean |
isReadWriteFileSystemSupported()
|
AdapterFactory |
proxyAdapterFactory(AdapterFactory af,
LogAdapterHolder lah)
This is called to let the capability provider proxy the file system's adapter factory before the file system is created. |
FileSystemDelegate |
proxyFileSystemDelegate(FileSystemDelegate fsd,
SupportObjects so,
boolean readOnly)
This is used when creating the file system to let the capability provider proxy the file system delegate. |
DirectoryDelegate |
proxyRootDirectoryDelegate(FileSystemImplementation fs,
FileSystemDelegate fsd,
DirectoryDelegate dd,
LogAdapterHolder lah)
This is used when creating a file system to let the capability provider proxy the root directory delegate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GZipCompressionCapabilityProvider()
Method Detail |
---|
public AdapterFactory proxyAdapterFactory(AdapterFactory af, LogAdapterHolder lah)
CapabilityProviderImplementation
proxyAdapterFactory
in interface CapabilityProviderImplementation
af
- The adapter factory.lah
- The (future) file system's log adapter holder.
null
.public FileSystemDelegate proxyFileSystemDelegate(FileSystemDelegate fsd, SupportObjects so, boolean readOnly)
CapabilityProviderImplementation
This method can check that all capabilities that the capability provider
require in order to work are present in the FileSystemDelegate
to
proxy. If not, the method throws an
FileSystemConfigurationException
.
When this method is called, no owning FileSystemImplementation
is
created yet, so a call to FileSystemDelegate.getOwner()
will
return null
.
proxyFileSystemDelegate
in interface CapabilityProviderImplementation
fsd
- The file system delegate to proxy.so
- The file system's support objects. Maybe useful for
implementations of this method, maybe not.readOnly
- Is the file system read only?
fsd
or fsd
itself. Never null
.public DirectoryDelegate proxyRootDirectoryDelegate(FileSystemImplementation fs, FileSystemDelegate fsd, DirectoryDelegate dd, LogAdapterHolder lah)
CapabilityProviderImplementation
proxyRootDirectoryDelegate
in interface CapabilityProviderImplementation
fs
- The file system object.fsd
- The file system delegate created by
CapabilityProviderImplementation.proxyFileSystemDelegate(FileSystemDelegate, SupportObjects, boolean)
.dd
- The root directory delegate.
dd
or dd
itself. Never null
.public boolean isReadOnlyFileSystemSupported()
isReadOnlyFileSystemSupported
in interface CapabilityProviderImplementation
true
, always.public boolean isReadWriteFileSystemSupported()
isReadWriteFileSystemSupported
in interface CapabilityProviderImplementation
true
, always.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |