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_SIZE
description, 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, wrapStream
addConfigured, compareTo, dieOnCircularReference, getLastModified, getName, getResource, hashCode, isDirectory, isExists, isFilesystemOnly, setDirectory, setExists, setLastModified, setName, setRefid, setSize
clone, equals, getMagicNumber, iterator, size, toLongString
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
protected CompressedResource()
protected CompressedResource(ResourceCollection other)
other
- the resource to wrap.