org.apache.tools.ant.types.resources
public class BZip2Resource extends CompressedResource
Wraps around another resource, delegates all quries to that other resource but uncompresses/compresses streams on the fly.
Since: Ant 1.7
Constructor Summary | |
---|---|
BZip2Resource() A no-arg constructor | |
BZip2Resource(ResourceCollection other)
Constructor with another resource to wrap. |
Method Summary | |
---|---|
protected String | getCompressionName()
Get the name of the compression method. |
protected InputStream | wrapStream(InputStream in)
Decompress on the fly using {@link CBZip2InputStream}. |
protected OutputStream | wrapStream(OutputStream out)
Compress on the fly using {@link CBZip2OutputStream}. |
Parameters: other the resource to wrap.
Returns: the string "Bzip2".
Parameters: in the stream to wrap.
Returns: the wrapped stream.
Throws: IOException if there is a problem.
Parameters: out the stream to wrap.
Returns: the wrapped stream.
Throws: IOException if there is a problem.