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.BinaryTreeNode
distanceTree
private boolean
endOfBlock
private HuffmanDecoder.BinaryTreeNode
lengthTree
private byte[]
runBuffer
private int
runBufferLength
private int
runBufferPos
private HuffmanState
state
-
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) 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()
-
-
-
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:
state
in classHuffmanDecoder.DecoderState
-
read
int read(byte[] b, int off, int len) throws java.io.IOException
- Specified by:
read
in 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:
hasData
in classHuffmanDecoder.DecoderState
-
available
int available()
- Specified by:
available
in classHuffmanDecoder.DecoderState
-
-