|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.clazzes.org.apache.commons.compress.PackableObject
org.clazzes.org.apache.commons.compress.AbstractCompressor
org.clazzes.org.apache.commons.compress.compressors.bzip2.BZip2Compressor
public class BZip2Compressor
Implementation of the Compressor Interface for BZip2.
Field Summary |
---|
Fields inherited from class org.clazzes.org.apache.commons.compress.PackableObject |
---|
CHOOSE_EXTENSION, CHOOSE_NAME |
Constructor Summary | |
---|---|
BZip2Compressor()
Constructor. |
Method Summary | |
---|---|
void |
compressTo(java.io.InputStream in,
java.io.OutputStream out)
Compresses the input stream and writes the compressed bytes to the output stream. |
void |
decompressTo(java.io.InputStream in,
java.io.OutputStream out)
Decompresses this file and writes the decompressed file to the output-stream |
java.lang.String |
getDefaultFileExtension()
Returns a String with the default file extension for this compressor. |
byte[] |
getHeader()
Header byte array for this archive. |
java.lang.String |
getName()
Returns the ArchiveName for this archive. |
Methods inherited from class org.clazzes.org.apache.commons.compress.AbstractCompressor |
---|
compress, compress, compressTo, compressToHere, decompress, decompress, decompressTo |
Methods inherited from class org.clazzes.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(java.io.InputStream in, java.io.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(java.io.InputStream in, java.io.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 java.lang.String getName()
PackableObject
getName
in class PackableObject
public java.lang.String getDefaultFileExtension()
AbstractCompressor
getDefaultFileExtension
in class AbstractCompressor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |