| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private abstract static class | |
| private static class | |
| private class | |
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int[] | CODE_LENGTHS_ORDER
When using dynamic huffman codes the order in which the values are stored follows the positioning below |
| private static final int[] | DISTANCE_TABLE
-------------------------------------------------------------------- idx xtra dist idx xtra dist idx xtra dist -------------------------------------------------------------------- 0 0 1 10 4 33-48 20 9 1025-1536 1 0 2 11 4 49-64 21 9 1537-2048 2 0 3 12 5 65-96 22 10 2049-3072 3 0 4 13 5 97-128 23 10 3073-4096 4 1 5,6 14 6 129-192 24 11 4097-6144 5 1 7,8 15 6 193-256 25 11 6145-8192 6 2 9-12 16 7 257-384 26 12 8193-12288 7 2 13-16 17 7 385-512 27 12 12289-16384 8 3 17-24 18 8 513-768 28 13 16385-24576 9 3 25-32 19 8 769-1024 29 13 24577-32768 30 14 32769-49152 31 14 49153-65536 -------------------------------------------------------------------- |
| private boolean | |
| private static final int[] | |
| private static final int[] | FIXED_LITERALS
Huffman Fixed Literal / Distance tables for mode 1 |
| private final InputStream | |
| private final HuffmanDecoder. | |
| private BitInputStream | |
| private static final short[] | RUN_LENGTH_TABLE
-------------------------------------------------------------------- idx xtra base idx xtra base idx xtra base -------------------------------------------------------------------- 257 0 3 267 1 15,16 277 4 67-82 258 0 4 268 1 17,18 278 4 83-98 259 0 5 269 2 19-22 279 4 99-114 260 0 6 270 2 23-26 280 4 115-130 261 0 7 271 2 27-30 281 5 131-162 262 0 8 272 2 31-34 282 5 163-194 263 0 9 273 3 35-42 283 5 195-226 264 0 10 274 3 43-50 284 5 227-257 265 1 11,12 275 3 51-58 285 16 3 266 1 13,14 276 3 59-66 -------------------------------------------------------------------- |
| private HuffmanDecoder. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| private static HuffmanDecoder. | |
| public void | close()
Implements java. |
| public int | |
| public int | |
| pack-priv long | |
| private static int[] | |
| private static int | |
| private static void | |
| private static long | |
| private long | |
| private int[][] | |
| private void |
| CODE_LENGTHS_ORDER | back to summary |
|---|---|
| private static final int[] CODE_LENGTHS_ORDER When using dynamic huffman codes the order in which the values are stored follows the positioning below | |
| DISTANCE_TABLE | back to summary |
|---|---|
private static final int[] DISTANCE_TABLE-------------------------------------------------------------------- idx xtra dist idx xtra dist idx xtra dist -------------------------------------------------------------------- 0 0 1 10 4 33-48 20 9 1025-1536 1 0 2 11 4 49-64 21 9 1537-2048 2 0 3 12 5 65-96 22 10 2049-3072 3 0 4 13 5 97-128 23 10 3073-4096 4 1 5,6 14 6 129-192 24 11 4097-6144 5 1 7,8 15 6 193-256 25 11 6145-8192 6 2 9-12 16 7 257-384 26 12 8193-12288 7 2 13-16 17 7 385-512 27 12 12289-16384 8 3 17-24 18 8 513-768 28 13 16385-24576 9 3 25-32 19 8 769-1024 29 13 24577-32768 30 14 32769-49152 31 14 49153-65536 --------------------------------------------------------------------value = (base of distance) << 4 | (number of extra bits to read) | |
| finalBlock | back to summary |
|---|---|
| private boolean finalBlock | |
| FIXED_DISTANCE | back to summary |
|---|---|
| private static final int[] FIXED_DISTANCE | |
| FIXED_LITERALS | back to summary |
|---|---|
| private static final int[] FIXED_LITERALS Huffman Fixed Literal / Distance tables for mode 1 | |
| in | back to summary |
|---|---|
| private final InputStream in | |
| memory | back to summary |
|---|---|
| private final HuffmanDecoder. | |
| reader | back to summary |
|---|---|
| private BitInputStream reader | |
| RUN_LENGTH_TABLE | back to summary |
|---|---|
private static final short[] RUN_LENGTH_TABLE-------------------------------------------------------------------- idx xtra base idx xtra base idx xtra base -------------------------------------------------------------------- 257 0 3 267 1 15,16 277 4 67-82 258 0 4 268 1 17,18 278 4 83-98 259 0 5 269 2 19-22 279 4 99-114 260 0 6 270 2 23-26 280 4 115-130 261 0 7 271 2 27-30 281 5 131-162 262 0 8 272 2 31-34 282 5 163-194 263 0 9 273 3 35-42 283 5 195-226 264 0 10 274 3 43-50 284 5 227-257 265 1 11,12 275 3 51-58 285 16 3 266 1 13,14 276 3 59-66 --------------------------------------------------------------------value = (base of run length) << 5 | (number of extra bits to read) | |
| state | back to summary |
|---|---|
| private HuffmanDecoder. | |
| HuffmanDecoder | back to summary |
|---|---|
| pack-priv HuffmanDecoder(final InputStream in) | |
| available | back to summary |
|---|---|
| pack-priv int available() throws IOException | |
| buildTree | back to summary |
|---|---|
| private static HuffmanDecoder. | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| decode | back to summary |
|---|---|
| public int decode(final byte[] b) throws IOException | |
| decode | back to summary |
|---|---|
| public int decode(final byte[] b, final int off, final int len) throws IOException | |
| getBytesRead | back to summary |
|---|---|
pack-priv long getBytesRead()
| |
| getCodes | back to summary |
|---|---|
| private static int[] getCodes(final int[] litTable) | |
| nextSymbol | back to summary |
|---|---|
| private static int nextSymbol(final BitInputStream reader, final HuffmanDecoder. | |
| populateDynamicTables | back to summary |
|---|---|
| private static void populateDynamicTables(final BitInputStream reader, final int[] literals, final int[] distances) throws IOException | |
| readBits | back to summary |
|---|---|
| private static long readBits(final BitInputStream reader, final int numBits) throws IOException | |
| readBits | back to summary |
|---|---|
| private long readBits(final int numBits) throws IOException | |
| readDynamicTables | back to summary |
|---|---|
| private int[][] readDynamicTables() throws IOException | |
| switchToUncompressedState | back to summary |
|---|---|
| private void switchToUncompressedState() throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| pack-priv HuffmanDecoder. | |
| pack-priv int | |
| pack-priv HuffmanDecoder. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv HuffmanDecoder. | |
| pack-priv HuffmanDecoder. |
| bits | back to summary |
|---|---|
| private final int bits | |
| leftNode | back to summary |
|---|---|
| pack-priv HuffmanDecoder. | |
| literal | back to summary |
|---|---|
| pack-priv int literal | |
| rightNode | back to summary |
|---|---|
| pack-priv HuffmanDecoder. | |
| BinaryTreeNode | back to summary |
|---|---|
| private BinaryTreeNode(final int bits) | |
| leaf | back to summary |
|---|---|
| pack-priv void leaf(final int symbol) | |
| left | back to summary |
|---|---|
| pack-priv HuffmanDecoder. | |
| right | back to summary |
|---|---|
| pack-priv HuffmanDecoder. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract int | |
| pack-priv abstract boolean | |
| pack-priv abstract int | |
| pack-priv abstract HuffmanState |
| DecoderState | back to summary |
|---|---|
| private DecoderState() | |
| available | back to summary |
|---|---|
| pack-priv abstract int available() throws IOException | |
| hasData | back to summary |
|---|---|
| pack-priv abstract boolean hasData() | |
| read | back to summary |
|---|---|
| pack-priv abstract int read(byte[] b, int off, int len) throws IOException | |
| state | back to summary |
|---|---|
| pack-priv abstract HuffmanState state() | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final byte[] | |
| private int | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv byte | |
| pack-priv void | |
| private int | |
| pack-priv void |
| mask | back to summary |
|---|---|
| private final int mask | |
| memory | back to summary |
|---|---|
| private final byte[] memory | |
| wHead | back to summary |
|---|---|
| private int wHead | |
| wrappedAround | back to summary |
|---|---|
| private boolean wrappedAround | |
| DecodingMemory | back to summary |
|---|---|
| private DecodingMemory() | |
| DecodingMemory | back to summary |
|---|---|
| private DecodingMemory(final int bits) | |
| add | back to summary |
|---|---|
| pack-priv byte add(final byte b) | |
| add | back to summary |
|---|---|
| pack-priv void add(final byte[] b, final int off, final int len) | |
| incCounter | back to summary |
|---|---|
| private int incCounter(final int counter) | |
| recordToBuffer | back to summary |
|---|---|
| pack-priv void recordToBuffer(final int distance, final int length, final byte[] buff) | |
| Modifier and Type | Field and Description |
|---|---|
| private final HuffmanDecoder. | |
| private boolean | |
| private final HuffmanDecoder. | |
| private byte[] | |
| private int | |
| private int | |
| private final HuffmanState |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| private int | |
| private int | |
| pack-priv boolean | hasData()
Implements abstract org. |
| pack-priv int | read(final byte[] b, final int off, final int len)
Implements abstract org. |
| pack-priv HuffmanState | state()
Implements abstract org. |
| distanceTree | back to summary |
|---|---|
| private final HuffmanDecoder. | |
| endOfBlock | back to summary |
|---|---|
| private boolean endOfBlock | |
| lengthTree | back to summary |
|---|---|
| private final HuffmanDecoder. | |
| runBuffer | back to summary |
|---|---|
| private byte[] runBuffer | |
| runBufferLength | back to summary |
|---|---|
| private int runBufferLength | |
| runBufferPos | back to summary |
|---|---|
| private int runBufferPos | |
| state | back to summary |
|---|---|
| private final HuffmanState state | |
| HuffmanCodes | back to summary |
|---|---|
| pack-priv HuffmanCodes(final HuffmanState state, final int[] lengths, final int[] distance) | |
| available | back to summary |
|---|---|
| pack-priv int available() Implements abstract org.
| |
| copyFromRunBuffer | back to summary |
|---|---|
| private int copyFromRunBuffer(final byte[] b, final int off, final int len) | |
| decodeNext | back to summary |
|---|---|
| private int decodeNext(final byte[] b, final int off, final int len) throws IOException | |
| hasData | back to summary |
|---|---|
| pack-priv boolean hasData() Implements abstract org.
| |
| read | back to summary |
|---|---|
| pack-priv int read(final byte[] b, final int off, final int len) throws IOException Implements abstract org.
| |
| state | back to summary |
|---|---|
| pack-priv HuffmanState state() Implements abstract org.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv boolean | hasData()
Implements abstract org. |
| pack-priv int | read(final byte[] b, final int off, final int len)
Implements abstract org. |
| pack-priv HuffmanState | state()
Implements abstract org. |
| InitialState | back to summary |
|---|---|
| private InitialState() | |
| available | back to summary |
|---|---|
| pack-priv int available() Implements abstract org.
| |
| hasData | back to summary |
|---|---|
| pack-priv boolean hasData() Implements abstract org.
| |
| read | back to summary |
|---|---|
| pack-priv int read(final byte[] b, final int off, final int len) throws IOException Implements abstract org.
| |
| state | back to summary |
|---|---|
| pack-priv HuffmanState state() Implements abstract org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv boolean | hasData()
Implements abstract org. |
| pack-priv int | read(final byte[] b, final int off, final int len)
Implements abstract org. |
| pack-priv HuffmanState | state()
Implements abstract org. |
| blockLength | back to summary |
|---|---|
| private final long blockLength | |
| read | back to summary |
|---|---|
| private long read | |
| UncompressedState | back to summary |
|---|---|
| private UncompressedState(final long blockLength) | |
| available | back to summary |
|---|---|
| pack-priv int available() throws IOException Implements abstract org.
| |
| hasData | back to summary |
|---|---|
| pack-priv boolean hasData() Implements abstract org.
| |
| read | back to summary |
|---|---|
| pack-priv int read(final byte[] b, final int off, final int len) throws IOException Implements abstract org.
| |
| state | back to summary |
|---|---|
| pack-priv HuffmanState state() Implements abstract org.
| |