| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private BitInputStream | |
| private boolean | |
| private int | blockSize100k
always: in the range 0 .. |
| private int | |
| private int | |
| private final CRC | |
| private int | |
| private BZip2CompressorInputStream. | data
All memory intensive stuff. |
| private final boolean | |
| private static final int | |
| private int | last
Index of the last char in the block, so the block size == last + 1. |
| private int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private int | origPtr
Index in zptr[] of original string after sorting. |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private char |
| Access | Constructor and Description |
|---|---|
| public | BZip2CompressorInputStream(final InputStream
the InputStream from which this object should be created in)Constructs a new BZip2CompressorInputStream which decompresses bytes read from the specified stream. |
| public | BZip2CompressorInputStream(final InputStream
the InputStream from which this object should be created in, final boolean if true, decompress until the end of the input; if false, stop after the first .bz2 stream and leave the input position to
point to the next byte after the .bz2 stream decompressConcatenated)Constructs a new BZip2CompressorInputStream which decompresses bytes read from the specified stream. |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private static int | |
| private static char | |
| private static int | Returns: the requested bits combined into an intthe number of bits to read, must not exceed 32? n)read bits from the input stream |
| private static void | |
| public void | close()
Overrides java. Implements java. |
| private boolean | |
| private void | createHuffmanDecodingTables(final int alphaSize, final int nGroups)
Called by recvDecodingTables() exclusively. |
| private void | |
| private void | |
| private int | |
| public long | getCompressedCount()
Implements org. |
| private static void | hbCreateDecodeTables(final int[] limit, final int[] base, final int[] perm, final char[] length, final int minLen, final int maxLen, final int alphaSize)
Called by createHuffmanDecodingTables() exclusively. |
| private boolean | |
| private void | |
| private void | |
| public static boolean | Returns: true, if this stream is a bzip2 compressed stream, false otherwisethe bytes to check signature, final int the number of bytes to check length)Checks if the signature matches what is expected for a bzip2 file. |
| public int | read()
Implements abstract java. |
| public int | read(final byte[]
the buffer into which the data is read. dest, final int the start offset in array offs, final int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. len bytes of data from the input stream into
an array of bytes.
|
| private int | |
| private int | |
| private void | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int |
| bin | back to summary |
|---|---|
| private BitInputStream bin | |
| blockRandomised | back to summary |
|---|---|
| private boolean blockRandomised | |
| blockSize100k | back to summary |
|---|---|
| private int blockSize100k always: in the range 0 .. 9. The current block size is 100000 * this number. | |
| computedBlockCRC | back to summary |
|---|---|
| private int computedBlockCRC | |
| computedCombinedCRC | back to summary |
|---|---|
| private int computedCombinedCRC | |
| crc | back to summary |
|---|---|
| private final CRC crc | |
| currentState | back to summary |
|---|---|
| private int currentState | |
| data | back to summary |
|---|---|
| private BZip2CompressorInputStream. All memory intensive stuff. This field is initialized by initBlock(). | |
| decompressConcatenated | back to summary |
|---|---|
| private final boolean decompressConcatenated | |
| EOF | back to summary |
|---|---|
| private static final int EOF | |
| last | back to summary |
|---|---|
| private int last Index of the last char in the block, so the block size == last + 1. | |
| nInUse | back to summary |
|---|---|
| private int nInUse | |
| NO_RAND_PART_A_STATE | back to summary |
|---|---|
| private static final int NO_RAND_PART_A_STATE | |
| NO_RAND_PART_B_STATE | back to summary |
|---|---|
| private static final int NO_RAND_PART_B_STATE | |
| NO_RAND_PART_C_STATE | back to summary |
|---|---|
| private static final int NO_RAND_PART_C_STATE | |
| origPtr | back to summary |
|---|---|
| private int origPtr Index in zptr[] of original string after sorting. | |
| RAND_PART_A_STATE | back to summary |
|---|---|
| private static final int RAND_PART_A_STATE | |
| RAND_PART_B_STATE | back to summary |
|---|---|
| private static final int RAND_PART_B_STATE | |
| RAND_PART_C_STATE | back to summary |
|---|---|
| private static final int RAND_PART_C_STATE | |
| START_BLOCK_STATE | back to summary |
|---|---|
| private static final int START_BLOCK_STATE | |
| storedBlockCRC | back to summary |
|---|---|
| private int storedBlockCRC | |
| storedCombinedCRC | back to summary |
|---|---|
| private int storedCombinedCRC | |
| su_ch2 | back to summary |
|---|---|
| private int su_ch2 | |
| su_chPrev | back to summary |
|---|---|
| private int su_chPrev | |
| su_count | back to summary |
|---|---|
| private int su_count | |
| su_i2 | back to summary |
|---|---|
| private int su_i2 | |
| su_j2 | back to summary |
|---|---|
| private int su_j2 | |
| su_rNToGo | back to summary |
|---|---|
| private int su_rNToGo | |
| su_rTPos | back to summary |
|---|---|
| private int su_rTPos | |
| su_tPos | back to summary |
|---|---|
| private int su_tPos | |
| su_z | back to summary |
|---|---|
| private char su_z | |
| BZip2CompressorInputStream | back to summary |
|---|---|
| public BZip2CompressorInputStream(final InputStream in) throws IOException Constructs a new BZip2CompressorInputStream which decompresses bytes read from the specified stream. This doesn't support decompressing concatenated .bz2 files.
| |
| BZip2CompressorInputStream | back to summary |
|---|---|
| public BZip2CompressorInputStream(final InputStream in, final boolean decompressConcatenated) throws IOException Constructs a new BZip2CompressorInputStream which decompresses bytes read from the specified stream.
| |
| bsGetBit | back to summary |
|---|---|
| private static boolean bsGetBit(final BitInputStream bin) throws IOException | |
| bsGetInt | back to summary |
|---|---|
| private static int bsGetInt(final BitInputStream bin) throws IOException | |
| bsGetUByte | back to summary |
|---|---|
| private static char bsGetUByte(final BitInputStream bin) throws IOException | |
| bsR | back to summary |
|---|---|
| private static int bsR(final BitInputStream bin, final int n) throws IOException read bits from the input stream
| |
| checkBounds | back to summary |
|---|---|
| private static void checkBounds(final int checkVal, final int limitExclusive, final String name) throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| complete | back to summary |
|---|---|
| private boolean complete() throws IOException | |
| createHuffmanDecodingTables | back to summary |
|---|---|
| private void createHuffmanDecodingTables(final int alphaSize, final int nGroups) throws IOException Called by recvDecodingTables() exclusively. | |
| endBlock | back to summary |
|---|---|
| private void endBlock() throws IOException | |
| getAndMoveToFrontDecode | back to summary |
|---|---|
| private void getAndMoveToFrontDecode() throws IOException | |
| getAndMoveToFrontDecode0 | back to summary |
|---|---|
| private int getAndMoveToFrontDecode0() throws IOException | |
| getCompressedCount | back to summary |
|---|---|
| public long getCompressedCount() Implements org. Doc from org. Gets the amount of raw or compressed bytes read by the stream.
| |
| hbCreateDecodeTables | back to summary |
|---|---|
| private static void hbCreateDecodeTables(final int[] limit, final int[] base, final int[] perm, final char[] length, final int minLen, final int maxLen, final int alphaSize) throws IOException Called by createHuffmanDecodingTables() exclusively. | |
| init | back to summary |
|---|---|
| private boolean init(final boolean isFirstStream) throws IOException | |
| initBlock | back to summary |
|---|---|
| private void initBlock() throws IOException | |
| makeMaps | back to summary |
|---|---|
| private void makeMaps() | |
| matches | back to summary |
|---|---|
| public static boolean matches(final byte[] signature, final int length) Checks if the signature matches what is expected for a bzip2 file.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(final byte[] dest, final int offs, final int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |
| read0 | back to summary |
|---|---|
| private int read0() throws IOException | |
| readNextByte | back to summary |
|---|---|
| private int readNextByte(final BitInputStream in) throws IOException | |
| recvDecodingTables | back to summary |
|---|---|
| private void recvDecodingTables() throws IOException | |
| setupBlock | back to summary |
|---|---|
| private int setupBlock() throws IOException | |
| setupNoRandPartA | back to summary |
|---|---|
| private int setupNoRandPartA() throws IOException | |
| setupNoRandPartB | back to summary |
|---|---|
| private int setupNoRandPartB() throws IOException | |
| setupNoRandPartC | back to summary |
|---|---|
| private int setupNoRandPartC() throws IOException | |
| setupRandPartA | back to summary |
|---|---|
| private int setupRandPartA() throws IOException | |
| setupRandPartB | back to summary |
|---|---|
| private int setupRandPartB() throws IOException | |
| setupRandPartC | back to summary |
|---|---|
| private int setupRandPartC() throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int[][] | |
| pack-priv final int[] | |
| pack-priv final char[] | |
| pack-priv final boolean[] | |
| pack-priv final int[][] | |
| pack-priv final byte[] | |
| pack-priv final int[] | |
| pack-priv final int[][] | |
| pack-priv final byte[] | |
| pack-priv final byte[] | |
| pack-priv final byte[] | |
| pack-priv final byte[] | |
| pack-priv final char[][] | |
| pack-priv int[] | |
| pack-priv final int[] | unzftab
Freq table collected to save a pass over the data during decompression. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int[] |
| base | back to summary |
|---|---|
| pack-priv final int[][] base | |
| cftab | back to summary |
|---|---|
| pack-priv final int[] cftab | |
| getAndMoveToFrontDecode_yy | back to summary |
|---|---|
| pack-priv final char[] getAndMoveToFrontDecode_yy | |
| inUse | back to summary |
|---|---|
| pack-priv final boolean[] inUse | |
| limit | back to summary |
|---|---|
| pack-priv final int[][] limit | |
| ll8 | back to summary |
|---|---|
| pack-priv final byte[] ll8 | |
| minLens | back to summary |
|---|---|
| pack-priv final int[] minLens | |
| perm | back to summary |
|---|---|
| pack-priv final int[][] perm | |
| recvDecodingTables_pos | back to summary |
|---|---|
| pack-priv final byte[] recvDecodingTables_pos | |
| selector | back to summary |
|---|---|
| pack-priv final byte[] selector | |
| selectorMtf | back to summary |
|---|---|
| pack-priv final byte[] selectorMtf | |
| seqToUnseq | back to summary |
|---|---|
| pack-priv final byte[] seqToUnseq | |
| temp_charArray2d | back to summary |
|---|---|
| pack-priv final char[][] temp_charArray2d | |
| tt | back to summary |
|---|---|
| pack-priv int[] tt | |
| unzftab | back to summary |
|---|---|
| pack-priv final int[] unzftab Freq table collected to save a pass over the data during decompression. | |
| Data | back to summary |
|---|---|
| pack-priv Data(final int blockSize100k) | |
| initTT | back to summary |
|---|---|
| pack-priv int[] initTT(final int length) Initializes the | |