final class Bzip2MoveToFrontTable
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
mtf
The Move To Front list.
|
| Constructor and Description |
|---|
Bzip2MoveToFrontTable() |
| Modifier and Type | Method and Description |
|---|---|
(package private) byte |
indexToFront(int index)
Gets the value from a given index and moves it to the front of the MTF list (inverse Move To Front transform).
|
(package private) int |
valueToFront(byte value)
Moves a value to the head of the MTF list (forward Move To Front transform).
|
int valueToFront(byte value)
value - The value to movebyte indexToFront(int index)
index - The index to move