final class HpackHuffmanDecoder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
HpackHuffmanDecoder.DecoderProcessor |
private static class |
HpackHuffmanDecoder.Node |
Modifier and Type | Field and Description |
---|---|
private static Http2Exception |
EOS_DECODED |
private static Http2Exception |
INVALID_PADDING |
private HpackHuffmanDecoder.DecoderProcessor |
processor |
private static HpackHuffmanDecoder.Node |
ROOT |
Constructor and Description |
---|
HpackHuffmanDecoder(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
private static HpackHuffmanDecoder.Node |
buildTree(int[] codes,
byte[] lengths) |
AsciiString |
decode(ByteBuf buf,
int length)
Decompresses the given Huffman coded string literal.
|
private static void |
insert(HpackHuffmanDecoder.Node root,
int symbol,
int code,
byte length) |
private static final Http2Exception EOS_DECODED
private static final Http2Exception INVALID_PADDING
private static final HpackHuffmanDecoder.Node ROOT
private final HpackHuffmanDecoder.DecoderProcessor processor
public AsciiString decode(ByteBuf buf, int length) throws Http2Exception
buf
- the string literal to be decodedHttp2Exception
- EOS Decodedprivate static HpackHuffmanDecoder.Node buildTree(int[] codes, byte[] lengths)
private static void insert(HpackHuffmanDecoder.Node root, int symbol, int code, byte length)