Class Bzip2Decoder

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler

public class Bzip2Decoder extends ByteToMessageDecoder
Uncompresses a ByteBuf encoded with the Bzip2 format. See Bzip2.
  • Field Details

    • currentState

      private Bzip2Decoder.State currentState
    • reader

      private final Bzip2BitReader reader
      A reader that provides bit-level reads.
    • blockDecompressor

      private Bzip2BlockDecompressor blockDecompressor
      The decompressor for the current block.
    • huffmanStageDecoder

      private Bzip2HuffmanStageDecoder huffmanStageDecoder
      Bzip2 Huffman coding stage.
    • blockSize

      private int blockSize
      Always: in the range 0 .. 9. The current block size is 100000 * this number.
    • blockCRC

      private int blockCRC
      The CRC of the current block as read from the block header.
    • streamCRC

      private int streamCRC
      The merged CRC of all blocks decompressed so far.
  • Constructor Details

    • Bzip2Decoder

      public Bzip2Decoder()
  • Method Details