An output stream that compresses into the BZip2 format (without the file
header chars) into another stream.
TODO: Update to BZip2 1.0.1
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
allowableBlockSize
private int allowableBlockSize
block
private char[] block
blockCRC
private int blockCRC
blockRandomised
(package private) boolean blockRandomised
blockSize100k
(package private) int blockSize100k
bsBuff
(package private) int bsBuff
bsLive
(package private) int bsLive
bsStream
private OutputStream bsStream
bytesOut
(package private) int bytesOut
closed
(package private) boolean closed
combinedCRC
private int combinedCRC
currentChar
private int currentChar
firstAttempt
private boolean firstAttempt
inUse
private boolean[] inUse
last
(package private) int last
mCrc
(package private) CRC mCrc
mtfFreq
private int[] mtfFreq
nBlocksRandomised
private int nBlocksRandomised
origPtr
(package private) int origPtr
quadrant
private int[] quadrant
runLength
private int runLength
selector
private char[] selector
selectorMtf
private char[] selectorMtf
seqToUnseq
private char[] seqToUnseq
szptr
private short[] szptr
unseqToSeq
private char[] unseqToSeq
workDone
private int workDone
workFactor
private int workFactor
workLimit
private int workLimit
allocateCompressStructures
private void allocateCompressStructures()
bsFinishedWithStream
private void bsFinishedWithStream()
throws IOException
bsPutIntVS
private void bsPutIntVS(int numBits,
int c)
throws IOException
bsPutUChar
private void bsPutUChar(int c)
throws IOException
bsPutint
private void bsPutint(int u)
throws IOException
bsSetStream
private void bsSetStream(OutputStream f)
bsW
private void bsW(int n,
int v)
throws IOException
close
public void close()
throws IOException
doReversibleTransformation
private void doReversibleTransformation()
endBlock
private void endBlock()
throws IOException
endCompression
private void endCompression()
throws IOException
finalize
protected void finalize()
throws Throwable
flush
public void flush()
throws IOException
fullGtU
private boolean fullGtU(int i1,
int i2)
generateMTFValues
private void generateMTFValues()
hbAssignCodes
private void hbAssignCodes(int[] code,
char[] length,
int minLen,
int maxLen,
int alphaSize)
hbMakeCodeLengths
protected static void hbMakeCodeLengths(char[] len,
int[] freq,
int alphaSize,
int maxLen)
initBlock
private void initBlock()
initialize
private void initialize()
throws IOException
mainSort
private void mainSort()
makeMaps
private void makeMaps()
med3
private char med3(char a,
char b,
char c)
moveToFrontCodeAndSend
private void moveToFrontCodeAndSend()
throws IOException
panic
private static void panic()
qSort3
private void qSort3(int loSt,
int hiSt,
int dSt)
randomiseBlock
private void randomiseBlock()
sendMTFValues
private void sendMTFValues()
throws IOException
simpleSort
private void simpleSort(int lo,
int hi,
int d)
vswap
private void vswap(int p1,
int p2,
int n)
write
public void write(int bv)
throws IOException
modified by Oliver Merkel, 010128
writeRun
private void writeRun()
throws IOException