TODO: Update to BZip2 1.0.1 NB: note this class has been modified to add a leading BZ to the start of the BZIP2 stream to make it compatible with other PGP programs.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private byte[] | |
| private final CRC | |
| pack-priv boolean | |
| private final int | |
| private final Vector | |
| pack-priv int | |
| pack-priv int | |
| private OutputStream | |
| protected static final int | |
| pack-priv boolean | |
| pack-priv int | |
| private int | |
| protected static final int | |
| private boolean | |
| private boolean | |
| private int[] | |
| protected static final int | |
| private static final int[] | |
| private boolean[] | |
| protected static final int | |
| private int[] | |
| private int | |
| private int | |
| pack-priv int | |
| private short[] | |
| pack-priv static final short[] | |
| private int | |
| private byte[] | |
| protected static final int | |
| protected static final int | |
| private int | |
| private int[] | |
| private int | |
| private int | |
| private int | |
| private int[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| private void | |
| private void | |
| private void | |
| public void | |
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out. |
| private boolean | |
| private void | |
| private void | |
| protected static void | |
| private void | |
| private void | |
| private int | |
| private void | |
| private static void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | write(int
the bv)byte.Implements abstract java. modified by Oliver Merkel, 010128 |
| private void |
| allowableBlockSize | back to summary |
|---|---|
| private final int allowableBlockSize | |
| blockBytes | back to summary |
|---|---|
| private byte[] blockBytes | |
| blockCRC | back to summary |
|---|---|
| private final CRC blockCRC | |
| blockRandomised | back to summary |
|---|---|
| pack-priv boolean blockRandomised | |
| blockSize100k | back to summary |
|---|---|
| private final int blockSize100k | |
| blocksortStack | back to summary |
|---|---|
| private final Vector<E> blocksortStack | |
| bsBuff | back to summary |
|---|---|
| pack-priv int bsBuff | |
| bsLivePos | back to summary |
|---|---|
| pack-priv int bsLivePos | |
| bsStream | back to summary |
|---|---|
| private OutputStream bsStream | |
| CLEARMASK | back to summary |
|---|---|
| protected static final int CLEARMASK | |
| closed | back to summary |
|---|---|
| pack-priv boolean closed | |
| count | back to summary |
|---|---|
| pack-priv int count | |
| currentByte | back to summary |
|---|---|
| private int currentByte | |
| DEPTH_THRESH | back to summary |
|---|---|
| protected static final int DEPTH_THRESH | |
| finished | back to summary |
|---|---|
| private boolean finished | |
| firstAttempt | back to summary |
|---|---|
| private boolean firstAttempt | |
| ftab | back to summary |
|---|---|
| private int[] ftab | |
| GREATER_ICOST | back to summary |
|---|---|
| protected static final int GREATER_ICOST | |
| INCS | back to summary |
|---|---|
| private static final int[] INCS | |
| inUse | back to summary |
|---|---|
| private boolean[] inUse | |
| LESSER_ICOST | back to summary |
|---|---|
| protected static final int LESSER_ICOST | |
| mtfFreq | back to summary |
|---|---|
| private int[] mtfFreq | |
| nInUse | back to summary |
|---|---|
| private int nInUse | |
| nMTF | back to summary |
|---|---|
| private int nMTF | |
| origPtr | back to summary |
|---|---|
| pack-priv int origPtr | |
| quadrantShorts | back to summary |
|---|---|
| private short[] quadrantShorts | |
| R_NUMS | back to summary |
|---|---|
| pack-priv static final short[] R_NUMS | |
| runLength | back to summary |
|---|---|
| private int runLength | |
| selectors | back to summary |
|---|---|
| private byte[] selectors | |
| SETMASK | back to summary |
|---|---|
| protected static final int SETMASK | |
| SMALL_THRESH | back to summary |
|---|---|
| protected static final int SMALL_THRESH | |
| streamCRC | back to summary |
|---|---|
| private int streamCRC | |
| szptr | back to summary |
|---|---|
| private int[] szptr | |
| workDone | back to summary |
|---|---|
| private int workDone | |
| workFactor | back to summary |
|---|---|
| private int workFactor | |
| workLimit | back to summary |
|---|---|
| private int workLimit | |
| zptr | back to summary |
|---|---|
| private int[] zptr | |
| CBZip2OutputStream | back to summary |
|---|---|
| public CBZip2OutputStream(OutputStream outStream) throws IOException | |
| CBZip2OutputStream | back to summary |
|---|---|
| public CBZip2OutputStream(OutputStream outStream, int blockSize) throws IOException | |
| bsFinishedWithStream | back to summary |
|---|---|
| private void bsFinishedWithStream() throws IOException | |
| bsPutBit | back to summary |
|---|---|
| private void bsPutBit(int v) throws IOException | |
| bsPutBits | back to summary |
|---|---|
| private void bsPutBits(int n, int v) throws IOException | |
| bsPutBitsSmall | back to summary |
|---|---|
| private void bsPutBitsSmall(int n, int v) throws IOException | |
| bsPutInt32 | back to summary |
|---|---|
| private void bsPutInt32(int u) throws IOException | |
| bsPutLong48 | back to summary |
|---|---|
| private void bsPutLong48(long u) throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| doReversibleTransformation | back to summary |
|---|---|
| private void doReversibleTransformation() | |
| endBlock | back to summary |
|---|---|
| private void endBlock() throws IOException | |
| endCompression | back to summary |
|---|---|
| private void endCompression() throws IOException | |
| finish | back to summary |
|---|---|
| public void finish() throws IOException | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes
to be written out. The general contract of If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| fullGtU | back to summary |
|---|---|
| private boolean fullGtU(int i1, int i2) | |
| generateMTFValues | back to summary |
|---|---|
| private void generateMTFValues() | |
| hbAssignCodes | back to summary |
|---|---|
| private void hbAssignCodes(int[] code, byte[] length, int minLen, int maxLen, int alphaSize) | |
| hbMakeCodeLengths | back to summary |
|---|---|
| protected static void hbMakeCodeLengths(byte[] len, int[] freq, int alphaSize, int maxLen) | |
| initBlock | back to summary |
|---|---|
| private void initBlock() | |
| mainSort | back to summary |
|---|---|
| private void mainSort() | |
| med3 | back to summary |
|---|---|
| private int med3(int a, int b, int c) | |
| moveToFrontCodeAndSend | back to summary |
|---|---|
| private void moveToFrontCodeAndSend() throws IOException | |
| pushStackElem | back to summary |
|---|---|
| private static void pushStackElem(Vector<E> stack, int stackCount, int ll, int hh, int dd) | |
| qSort3 | back to summary |
|---|---|
| private void qSort3(int loSt, int hiSt, int dSt) | |
| randomiseBlock | back to summary |
|---|---|
| private void randomiseBlock() | |
| sendMTFValues | back to summary |
|---|---|
| private void sendMTFValues() throws IOException | |
| simpleSort | back to summary |
|---|---|
| private void simpleSort(int lo, int hi, int d) | |
| vswap | back to summary |
|---|---|
| private void vswap(int p1, int p2, int n) | |
| write | back to summary |
|---|---|
| public void write(int bv) throws IOException Implements abstract java. modified by Oliver Merkel, 010128
| |
| writeRun | back to summary |
|---|---|
| private void writeRun() throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| private |
| dd | back to summary |
|---|---|
| pack-priv int dd | |
| hh | back to summary |
|---|---|
| pack-priv int hh | |
| ll | back to summary |
|---|---|
| pack-priv int ll | |
| StackElem | back to summary |
|---|---|
| private StackElem() | |