java.lang.Cloneable
, java.lang.Comparable<Resource>
, java.lang.Iterable<Resource>
, ResourceCollection
public class BZip2Resource extends CompressedResource
Wraps around another resource, delegates all queries to that other resource but uncompresses/compresses streams on the fly.
description, location, project
UNKNOWN_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 . |
toString
as, getInputStream, getOutputStream, getSize, isAppendSupported
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
public 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 ContentTransformingResource
in
- 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 ContentTransformingResource
out
- the stream to wrap.java.io.IOException
- if there is a problem.protected java.lang.String getCompressionName()
getCompressionName
in class CompressedResource