java.lang.Cloneable, java.lang.Comparable<Resource>, java.lang.Iterable<Resource>, ResourceCollectionpublic class BZip2Resource extends CompressedResource
Wraps around another resource, delegates all queries to that other resource but uncompresses/compresses streams on the fly.
description, location, projectUNKNOWN_DATETIME, UNKNOWN_SIZE| Constructor | Description |
|---|---|
BZip2Resource() |
A no-arg constructor
|
BZip2Resource(ResourceCollection other) |
Constructor with another resource to wrap.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected java.lang.String |
getCompressionName() |
Get the name of the compression method.
|
protected java.io.InputStream |
wrapStream(java.io.InputStream in) |
Decompress on the fly using
CBZip2InputStream. |
protected java.io.OutputStream |
wrapStream(java.io.OutputStream out) |
Compress on the fly using
CBZip2OutputStream. |
toStringas, getInputStream, getOutputStream, getSize, isAppendSupportedcheckAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributesfinalize, getClass, notify, notifyAll, wait, wait, waitgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectasOptional, clone, equals, getCheckedRef, getMagicNumber, iterator, size, toLongStringisEmpty, streamaddConfigured, compareTo, dieOnCircularReference, getLastModified, getName, getResource, hashCode, isDirectory, isExists, isFilesystemOnly, setDirectory, setExists, setLastModified, setName, setRefid, setSizepublic BZip2Resource()
public BZip2Resource(ResourceCollection other)
other - the resource to wrap.protected java.io.InputStream wrapStream(java.io.InputStream in)
throws java.io.IOException
CBZip2InputStream.wrapStream in class ContentTransformingResourcein - the stream to wrap.java.io.IOException - if there is a problem.protected java.io.OutputStream wrapStream(java.io.OutputStream out)
throws java.io.IOException
CBZip2OutputStream.wrapStream in class ContentTransformingResourceout - the stream to wrap.java.io.IOException - if there is a problem.protected java.lang.String getCompressionName()
getCompressionName in class CompressedResource