final class Bzip2MTFAndRLE2StageEncoder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
alphabetSize
The encoded alphabet size.
|
private int[] |
bwtBlock
The Burrows-Wheeler transformed block.
|
private int |
bwtLength
Actual length of the data in the
bwtBlock array. |
private boolean[] |
bwtValuesPresent
At each position,
true if the byte value with that index is present within the block,
otherwise false . |
private char[] |
mtfBlock
The output of the Move To Front Transform and Run-Length Encoding[2] stages.
|
private int |
mtfLength
The actual number of values contained in the
mtfBlock array. |
private int[] |
mtfSymbolFrequencies
The global frequencies of values within the
mtfBlock array. |
Constructor and Description |
---|
Bzip2MTFAndRLE2StageEncoder(int[] bwtBlock,
int bwtLength,
boolean[] bwtValuesPresent) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
encode()
Performs the Move To Front transform and Run Length Encoding[1] stages.
|
(package private) int |
mtfAlphabetSize() |
(package private) char[] |
mtfBlock() |
(package private) int |
mtfLength() |
(package private) int[] |
mtfSymbolFrequencies() |
private final int[] bwtBlock
private final int bwtLength
bwtBlock
array.private final boolean[] bwtValuesPresent
true
if the byte value with that index is present within the block,
otherwise false
.private final char[] mtfBlock
private int mtfLength
mtfBlock
array.private final int[] mtfSymbolFrequencies
mtfBlock
array.private int alphabetSize
Bzip2MTFAndRLE2StageEncoder(int[] bwtBlock, int bwtLength, boolean[] bwtValuesPresent)
bwtBlock
- The Burrows Wheeler Transformed block databwtLength
- The actual length of the BWT databwtValuesPresent
- The values that are present within the BWT data. For each index,
true
if that value is present within the data, otherwise false
void encode()
char[] mtfBlock()
int mtfLength()
int mtfAlphabetSize()
int[] mtfSymbolFrequencies()