java.lang.Cloneable
, java.lang.Comparable<Resource>
, java.lang.Iterable<Resource>
, ResourceCollection
BZip2Resource
, GZipResource
, XzResource
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.
description, location, project
MAGIC, UNKNOWN_DATETIME, UNKNOWN_SIZE
Modifier | Constructor | Description |
---|---|---|
protected |
CompressedResource() |
no arg constructor
|
protected |
CompressedResource(ResourceCollection other) |
Constructor with another resource to wrap.
|
Modifier and Type | Method | 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
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes
finalize, getClass, notify, notifyAll, wait, wait, wait
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
asOptional, clone, equals, getCheckedRef, getMagicNumber, iterator, size, toLongString
isEmpty, stream
addConfigured, compareTo, dieOnCircularReference, getLastModified, getName, getResource, hashCode, isDirectory, isExists, isFilesystemOnly, setDirectory, setExists, setLastModified, setName, setRefid, setSize
protected CompressedResource()
protected CompressedResource(ResourceCollection other)
other
- the resource to wrap.