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.BinaryTreeNodeprivate booleanprivate final HuffmanDecoder.BinaryTreeNodeprivate byte[]private intprivate intprivate final HuffmanState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intprivate 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 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:
statein classHuffmanDecoder.DecoderState
-
read
- Specified by:
readin classHuffmanDecoder.DecoderState- Throws:
IOException
-
decodeNext
- Throws:
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
-