Wraps around another resource, delegates all queries to that other resource but uncompresses/compresses streams on the fly.
Modifier and Type | Field and Description |
---|---|
private static final char[] |
Access | Constructor and Description |
---|---|
public | |
public | BZip2Resource(ResourceCollection
the resource to wrap. other)Constructor with another resource to wrap. |
Modifier and Type | Method and Description |
---|---|
protected String | Returns: the string "Bzip2".Implements abstract org. |
protected InputStream | Returns: the wrapped stream.the stream to wrap. in)Implements abstract org. CBZip2InputStream .
|
protected OutputStream | Returns: the wrapped stream.the stream to wrap. out)Implements abstract org. CBZip2OutputStream .
|
MAGIC | back to summary |
---|---|
private static final char[] MAGIC |
BZip2Resource | back to summary |
---|---|
public BZip2Resource() A no-arg constructor |
BZip2Resource | back to summary |
---|---|
public BZip2Resource(ResourceCollection other) Constructor with another resource to wrap.
|
getCompressionName | back to summary |
---|---|
protected String getCompressionName() Implements abstract org. Get the name of the compression method. |
wrapStream | back to summary |
---|---|
protected InputStream wrapStream(InputStream in) throws IOException Implements abstract org. Decompress on the fly using
|
wrapStream | back to summary |
---|---|
protected OutputStream wrapStream(OutputStream out) throws IOException Implements abstract org. Compress on the fly using
|