org.apache.tools.bzip2

Class CBZip2OutputStream

public class CBZip2OutputStream extends OutputStream implements BZip2Constants

An output stream that compresses into the BZip2 format (without the file header chars) into another stream. TODO: Update to BZip2 1.0.1
Field Summary
protected static intCLEARMASK
protected static intDEPTH_THRESH
protected static intGREATER_ICOST
protected static intLESSER_ICOST
protected static intQSORT_STACK_SIZE
protected static intSETMASK
protected static intSMALL_THRESH
Constructor Summary
CBZip2OutputStream(OutputStream inStream)
CBZip2OutputStream(OutputStream inStream, int inBlockSize)
Method Summary
voidclose()
protected voidfinalize()
voidflush()
protected static voidhbMakeCodeLengths(char[] len, int[] freq, int alphaSize, int maxLen)
voidwrite(int bv)
modified by Oliver Merkel, 010128

Field Detail

CLEARMASK

protected static final int CLEARMASK

DEPTH_THRESH

protected static final int DEPTH_THRESH

GREATER_ICOST

protected static final int GREATER_ICOST

LESSER_ICOST

protected static final int LESSER_ICOST

QSORT_STACK_SIZE

protected static final int QSORT_STACK_SIZE

SETMASK

protected static final int SETMASK

SMALL_THRESH

protected static final int SMALL_THRESH

Constructor Detail

CBZip2OutputStream

public CBZip2OutputStream(OutputStream inStream)

CBZip2OutputStream

public CBZip2OutputStream(OutputStream inStream, int inBlockSize)

Method Detail

close

public void close()

finalize

protected void finalize()

flush

public void flush()

hbMakeCodeLengths

protected static void hbMakeCodeLengths(char[] len, int[] freq, int alphaSize, int maxLen)

write

public void write(int bv)
modified by Oliver Merkel, 010128