Class HuffmanDecoder.HuffmanCodes
java.lang.Object
org.apache.commons.compress.compressors.deflate64.HuffmanDecoder.DecoderState
org.apache.commons.compress.compressors.deflate64.HuffmanDecoder.HuffmanCodes
- Enclosing class:
- HuffmanDecoder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HuffmanDecoder.BinaryTreeNode
private boolean
private final HuffmanDecoder.BinaryTreeNode
private byte[]
private int
private int
private final HuffmanState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
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()
-
Field Details
-
endOfBlock
private boolean endOfBlock -
state
-
lengthTree
-
distanceTree
-
runBufferPos
private int runBufferPos -
runBuffer
private byte[] runBuffer -
runBufferLength
private int runBufferLength
-
-
Constructor Details
-
HuffmanCodes
HuffmanCodes(HuffmanState state, int[] lengths, int[] distance)
-
-
Method Details
-
state
HuffmanState state()- Specified by:
state
in classHuffmanDecoder.DecoderState
-
read
- Specified by:
read
in classHuffmanDecoder.DecoderState
- Throws:
IOException
-
decodeNext
- Throws:
IOException
-
copyFromRunBuffer
private int copyFromRunBuffer(byte[] b, int off, int len) -
hasData
boolean hasData()- Specified by:
hasData
in classHuffmanDecoder.DecoderState
-
available
int available()- Specified by:
available
in classHuffmanDecoder.DecoderState
-