| Modifier and Type | Class and Description |
|---|---|
| private static enum | Bzip2Decompressor.
Current state of stream. |
| Modifier and Type | Field and Description |
|---|---|
| private int | blockCRC
The CRC of the current block as read from the block header. |
| private Bzip2BlockDecompressor | blockDecompressor
The decompressor for the current block. |
| private int | blockSize
Always: in the range 0 .. |
| private Bzip2Decompressor. | |
| private Bzip2HuffmanStageDecoder | huffmanStageDecoder
Bzip2 Huffman coding stage. |
| private final Bzip2BitReader | reader
A reader that provides bit-level reads. |
| private int | streamCRC
The merged CRC of all blocks decompressed so far. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Buffer | decompress(Buffer
the in, BufferAllocator Buffer that contains the data to be decompressed.the allocator)BufferAllocator that is used to allocate a new buffer (if needed) to write the
decompressed bytes too.Implements io. Buffer and decompress into a new Buffer that will be
allocated (if needed) from the BufferAllocator.
|
| public boolean | isClosed()
Implements io. true if the decompressor was closed, false otherwise.
|
| public boolean | isFinished()
Implements io. true if and only if the end of the compressed stream
has been reached.
|
| public static Supplier |
| blockCRC | back to summary |
|---|---|
| private int blockCRC The CRC of the current block as read from the block header. | |
| blockDecompressor | back to summary |
|---|---|
| private Bzip2BlockDecompressor blockDecompressor The decompressor for the current block. | |
| blockSize | back to summary |
|---|---|
| private int blockSize Always: in the range 0 .. 9. The current block size is 100000 * this number. | |
| currentState | back to summary |
|---|---|
| private Bzip2Decompressor. | |
| huffmanStageDecoder | back to summary |
|---|---|
| private Bzip2HuffmanStageDecoder huffmanStageDecoder Bzip2 Huffman coding stage. | |
| reader | back to summary |
|---|---|
| private final Bzip2BitReader reader A reader that provides bit-level reads. | |
| streamCRC | back to summary |
|---|---|
| private int streamCRC The merged CRC of all blocks decompressed so far. | |
| Bzip2Decompressor | back to summary |
|---|---|
| private Bzip2Decompressor() | |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from io. Close the decompressor. After this method was called
| |
| decompress | back to summary |
|---|---|
| public Buffer decompress(Buffer in, BufferAllocator allocator) throws DecompressionException Implements io. Doc from io. This method will read from the input isFinished() is false
input
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Implements io. Doc from io. Return | |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() Implements io. Returns
| |
| newFactory | back to summary |
|---|---|
| public static Supplier Returns a factory for
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Bzip2Decompressor. | |
| public static final Bzip2Decompressor. | |
| public static final Bzip2Decompressor. | |
| public static final Bzip2Decompressor. | |
| public static final Bzip2Decompressor. | |
| public static final Bzip2Decompressor. | |
| public static final Bzip2Decompressor. | |
| public static final Bzip2Decompressor. | |
| public static final Bzip2Decompressor. | |
| public static final Bzip2Decompressor. | |
| public static final Bzip2Decompressor. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Bzip2Decompressor. | |
| public static Bzip2Decompressor. |
| CLOSED | back to summary |
|---|---|
| public static final Bzip2Decompressor. | |
| DECODE_HUFFMAN_DATA | back to summary |
|---|---|
| public static final Bzip2Decompressor. | |
| EOF | back to summary |
|---|---|
| public static final Bzip2Decompressor. | |
| INIT | back to summary |
|---|---|
| public static final Bzip2Decompressor. | |
| INIT_BLOCK | back to summary |
|---|---|
| public static final Bzip2Decompressor. | |
| INIT_BLOCK_PARAMS | back to summary |
|---|---|
| public static final Bzip2Decompressor. | |
| RECEIVE_HUFFMAN_LENGTH | back to summary |
|---|---|
| public static final Bzip2Decompressor. | |
| RECEIVE_HUFFMAN_USED_BITMAPS | back to summary |
|---|---|
| public static final Bzip2Decompressor. | |
| RECEIVE_HUFFMAN_USED_MAP | back to summary |
|---|---|
| public static final Bzip2Decompressor. | |
| RECEIVE_SELECTORS | back to summary |
|---|---|
| public static final Bzip2Decompressor. | |
| RECEIVE_SELECTORS_NUMBER | back to summary |
|---|---|
| public static final Bzip2Decompressor. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static Bzip2Decompressor. | |
| values | back to summary |
|---|---|
| public static Bzip2Decompressor. | |