public abstract class CompressedResource extends ContentTransformingResource
Wraps around another resource, delegates all queries (except getSize) to that other resource but uncompresses/compresses streams on the fly.
MAGIC, UNKNOWN_DATETIME, UNKNOWN_SIZEdescription, location, project| Modifier | Constructor and Description |
|---|---|
protected |
CompressedResource()
no arg constructor
|
protected |
CompressedResource(ResourceCollection other)
Constructor with another resource to wrap.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.String |
getCompressionName()
Get the name of the compression method used.
|
java.lang.String |
toString()
Get the string representation of this Resource.
|
as, getInputStream, getOutputStream, getSize, isAppendSupported, wrapStream, wrapStreamaddConfigured, compareTo, dieOnCircularReference, getLastModified, getName, getResource, hashCode, isDirectory, isExists, isFilesystemOnly, setDirectory, setExists, setLastModified, setName, setRefid, setSizeclone, equals, getMagicNumber, iterator, size, toLongStringcheckAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributesgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectprotected CompressedResource()
protected CompressedResource(ResourceCollection other)
other - the resource to wrap.