Package org.apache.hc.core5.http2.hpack
Class HuffmanDecoder
- java.lang.Object
-
- org.apache.hc.core5.http2.hpack.HuffmanDecoder
-
final class HuffmanDecoder extends java.lang.Object
This Huffman codec implementation has been derived from Twitter HPack project (https://github.com/twitter/hpack)
-
-
Field Summary
Fields Modifier and Type Field Description private HuffmanNode
root
-
Constructor Summary
Constructors Constructor Description HuffmanDecoder(int[] codes, byte[] lengths)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static HuffmanNode
buildTree(int[] codes, byte[] lengths)
(package private) void
decode(ByteArrayBuffer out, java.nio.ByteBuffer src)
-
-
-
Field Detail
-
root
private final HuffmanNode root
-
-
Method Detail
-
decode
void decode(ByteArrayBuffer out, java.nio.ByteBuffer src) throws HPackException
- Throws:
HPackException
-
buildTree
private static HuffmanNode buildTree(int[] codes, byte[] lengths)
-
-