Top Description Fields Constructors Methods
io.netty.handler.codec.compression

pack-priv final Class Bzip2Rand

extends Object
Class Inheritance

Random numbers for decompress Bzip2 blocks.

Field Summary

Modifier and TypeField and Description
private static final int[]
RNUMS

The Bzip2 specification originally included the optional addition of a slight pseudo-random perturbation to the input data, in order to work around the block sorting algorithm's non- optimal performance on some types of input.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static int

Returns:

the random number
rNums
(int
the index
i
)

Return the random number at a specific index.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

RNUMSback to summary
private static final int[] RNUMS

The Bzip2 specification originally included the optional addition of a slight pseudo-random perturbation to the input data, in order to work around the block sorting algorithm's non- optimal performance on some types of input. The current mainline bzip2 does not require this and will not create randomised blocks, but compatibility is still required for old data (and third party compressors that haven't caught up). When decompressing a randomised block, for each value N in this array, a 1 will be XOR'd onto the output of the Burrows-Wheeler transform stage after N bytes, then the next N taken from the following entry.

Constructor Detail

Bzip2Randback to summary
private Bzip2Rand()

Method Detail

rNumsback to summary
pack-priv static int rNums(int i)

Return the random number at a specific index.

Parameters
i:int

the index

Returns:int

the random number