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
private class HuffmanDecoder.HuffmanCodes extends HuffmanDecoder.DecoderState
-
-
Field Summary
Fields Modifier and Type Field Description private HuffmanDecoder.BinaryTreeNodedistanceTreeprivate booleanendOfBlockprivate HuffmanDecoder.BinaryTreeNodelengthTreeprivate byte[]runBufferprivate intrunBufferLengthprivate intrunBufferPosprivate HuffmanStatestate
-
Constructor Summary
Constructors Constructor Description HuffmanCodes(HuffmanState state, int[] lengths, int[] distance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intavailable()private intcopyFromRunBuffer(byte[] b, int off, int len)private intdecodeNext(byte[] b, int off, int len)(package private) booleanhasData()(package private) intread(byte[] b, int off, int len)(package private) HuffmanStatestate()
-
-
-
Field Detail
-
endOfBlock
private boolean endOfBlock
-
state
private final HuffmanState state
-
lengthTree
private final HuffmanDecoder.BinaryTreeNode lengthTree
-
distanceTree
private final HuffmanDecoder.BinaryTreeNode distanceTree
-
runBufferPos
private int runBufferPos
-
runBuffer
private byte[] runBuffer
-
runBufferLength
private int runBufferLength
-
-
Constructor Detail
-
HuffmanCodes
HuffmanCodes(HuffmanState state, int[] lengths, int[] distance)
-
-
Method Detail
-
state
HuffmanState state()
- Specified by:
statein classHuffmanDecoder.DecoderState
-
read
int read(byte[] b, int off, int len) throws java.io.IOException- Specified by:
readin classHuffmanDecoder.DecoderState- Throws:
java.io.IOException
-
decodeNext
private int decodeNext(byte[] b, int off, int len) throws java.io.IOException- Throws:
java.io.IOException
-
copyFromRunBuffer
private int copyFromRunBuffer(byte[] b, int off, int len)
-
hasData
boolean hasData()
- Specified by:
hasDatain classHuffmanDecoder.DecoderState
-
available
int available()
- Specified by:
availablein classHuffmanDecoder.DecoderState
-
-