Class Bzip2Constants
java.lang.Object
io.netty.handler.codec.compression.Bzip2Constants
Constants for both the
Bzip2Encoder
and the Bzip2Decoder
.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
Base block size.(package private) static final int
Block header magic number.(package private) static final int
(package private) static final int
End of stream magic number.(package private) static final int
(package private) static final int
The longest Huffman code length accepted by the decoder.(package private) static final int
The longest Huffman code length created by the encoder.(package private) static final int
Number of symbols decoded after which a new Huffman table is selected.(package private) static final int
Maximum possible Huffman alphabet size.(package private) static final int
Maximum number of alternative Huffman tables.(package private) static final int
Minimum number of alternative Huffman tables.(package private) static final int
Maximum length of zero-terminated bit runs of MTF'ed Huffman table.(package private) static final int
Huffman symbols range size for Huffman used map.(package private) static final int
Huffman symbols used for run-length encoding.(package private) static final int
(package private) static final int
Magic number of Bzip2 stream.(package private) static final int
(package private) static final int
(package private) static final int
Maximum possible number of Huffman table selectors.(package private) static final int
Minimum and maximum size of one block. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MAGIC_NUMBER
static final int MAGIC_NUMBERMagic number of Bzip2 stream.- See Also:
-
BLOCK_HEADER_MAGIC_1
static final int BLOCK_HEADER_MAGIC_1Block header magic number. Equals to BCD (pi).- See Also:
-
BLOCK_HEADER_MAGIC_2
static final int BLOCK_HEADER_MAGIC_2- See Also:
-
END_OF_STREAM_MAGIC_1
static final int END_OF_STREAM_MAGIC_1End of stream magic number. Equals to BCD sqrt(pi).- See Also:
-
END_OF_STREAM_MAGIC_2
static final int END_OF_STREAM_MAGIC_2- See Also:
-
BASE_BLOCK_SIZE
static final int BASE_BLOCK_SIZEBase block size.- See Also:
-
MIN_BLOCK_SIZE
static final int MIN_BLOCK_SIZEMinimum and maximum size of one block. Must be multiplied byBASE_BLOCK_SIZE
.- See Also:
-
MAX_BLOCK_SIZE
static final int MAX_BLOCK_SIZE- See Also:
-
MAX_BLOCK_LENGTH
static final int MAX_BLOCK_LENGTH- See Also:
-
HUFFMAN_MAX_ALPHABET_SIZE
static final int HUFFMAN_MAX_ALPHABET_SIZEMaximum possible Huffman alphabet size.- See Also:
-
HUFFMAN_ENCODE_MAX_CODE_LENGTH
static final int HUFFMAN_ENCODE_MAX_CODE_LENGTHThe longest Huffman code length created by the encoder.- See Also:
-
HUFFMAN_DECODE_MAX_CODE_LENGTH
static final int HUFFMAN_DECODE_MAX_CODE_LENGTHThe longest Huffman code length accepted by the decoder.- See Also:
-
HUFFMAN_SYMBOL_RUNA
static final int HUFFMAN_SYMBOL_RUNAHuffman symbols used for run-length encoding.- See Also:
-
HUFFMAN_SYMBOL_RUNB
static final int HUFFMAN_SYMBOL_RUNB- See Also:
-
HUFFMAN_SYMBOL_RANGE_SIZE
static final int HUFFMAN_SYMBOL_RANGE_SIZEHuffman symbols range size for Huffman used map.- See Also:
-
HUFFMAN_SELECTOR_LIST_MAX_LENGTH
static final int HUFFMAN_SELECTOR_LIST_MAX_LENGTHMaximum length of zero-terminated bit runs of MTF'ed Huffman table.- See Also:
-
HUFFMAN_GROUP_RUN_LENGTH
static final int HUFFMAN_GROUP_RUN_LENGTHNumber of symbols decoded after which a new Huffman table is selected.- See Also:
-
MAX_SELECTORS
static final int MAX_SELECTORSMaximum possible number of Huffman table selectors.- See Also:
-
HUFFMAN_MINIMUM_TABLES
static final int HUFFMAN_MINIMUM_TABLESMinimum number of alternative Huffman tables.- See Also:
-
HUFFMAN_MAXIMUM_TABLES
static final int HUFFMAN_MAXIMUM_TABLESMaximum number of alternative Huffman tables.- See Also:
-
-
Constructor Details
-
Bzip2Constants
private Bzip2Constants()
-