private class HuffmanDecoder.HuffmanCodes extends HuffmanDecoder.DecoderState
Modifier and Type | Field and Description |
---|---|
private HuffmanDecoder.BinaryTreeNode |
distanceTree |
private boolean |
endOfBlock |
private HuffmanDecoder.BinaryTreeNode |
lengthTree |
private byte[] |
runBuffer |
private int |
runBufferLength |
private int |
runBufferPos |
private HuffmanState |
state |
Constructor and Description |
---|
HuffmanCodes(HuffmanState state,
int[] lengths,
int[] distance) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
available() |
private int |
copyFromRunBuffer(byte[] b,
int off,
int len) |
private int |
decodeNext(byte[] b,
int off,
int len) |
(package private) boolean |
hasData() |
(package private) int |
read(byte[] b,
int off,
int len) |
(package private) HuffmanState |
state() |
private boolean endOfBlock
private final HuffmanState state
private final HuffmanDecoder.BinaryTreeNode lengthTree
private final HuffmanDecoder.BinaryTreeNode distanceTree
private int runBufferPos
private byte[] runBuffer
private int runBufferLength
HuffmanCodes(HuffmanState state, int[] lengths, int[] distance)
HuffmanState state()
state
in class HuffmanDecoder.DecoderState
int read(byte[] b, int off, int len) throws java.io.IOException
read
in class HuffmanDecoder.DecoderState
java.io.IOException
private int decodeNext(byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
private int copyFromRunBuffer(byte[] b, int off, int len)
boolean hasData()
hasData
in class HuffmanDecoder.DecoderState
int available()
available
in class HuffmanDecoder.DecoderState