|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.compress.PackableObject
org.apache.commons.compress.AbstractCompressor
org.apache.commons.compress.compressors.bzip2.BZip2Compressor
public class BZip2Compressor
Implementation of the Compressor Interface for BZip2.
Field Summary |
---|
Fields inherited from class org.apache.commons.compress.PackableObject |
---|
CHOOSE_EXTENSION, CHOOSE_NAME |
Constructor Summary | |
---|---|
BZip2Compressor()
Constructor. |
Method Summary | |
---|---|
void |
compressTo(InputStream in,
OutputStream out)
Compresses the input stream and writes the compressed bytes to the output stream. |
void |
decompressTo(InputStream in,
OutputStream out)
Decompresses this file and writes the decompressed file to the output-stream |
String |
getDefaultFileExtension()
Returns a String with the default file extension for this compressor. |
byte[] |
getHeader()
Header byte array for this archive. |
String |
getName()
Returns the ArchiveName for this archive. |
Methods inherited from class org.apache.commons.compress.AbstractCompressor |
---|
compress, compress, compressTo, compressToHere, decompress, decompress, decompressTo |
Methods inherited from class org.apache.commons.compress.PackableObject |
---|
identifyByHeader, isPackableWith |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BZip2Compressor()
Method Detail |
---|
public void compressTo(InputStream in, OutputStream out) throws CompressException
Compressor
in
- InputStream to compress toout
- OutputStream to which the byte shall be written
CompressException
- if the Compressor reports an errorpublic void decompressTo(InputStream in, OutputStream out) throws CompressException
Compressor
in
- Stream to decompressout
- Stream to write the decompressed bytes to
CompressException
- if the Compressor reports an errorpublic byte[] getHeader()
PackableObject
getHeader
in class PackableObject
public String getName()
PackableObject
getName
in class PackableObject
public String getDefaultFileExtension()
AbstractCompressor
getDefaultFileExtension
in class AbstractCompressor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |