Top Fields Constructors Methods
io.netty5.handler.codec.http2

pack-priv final Class HpackHuffmanDecoder

extends Object
Class Inheritance
Imports
io.netty5.buffer.Buffer, .ByteCursor, io.netty5.util.AsciiString

Field Summary

Modifier and TypeField and Description
private static final Http2Exception
private byte[]
private static final byte
private static final int
private static final byte
private static final int
private static final byte
private static final int
private static final int[]
HUFFS

A table of byte tuples (state, flags, output).

private int
k

private int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public AsciiString

Returns:

the output stream for the compressed data
decode
(Buffer
the string literal to be decoded
buf
,
int length)

Decompresses the given Huffman coded string literal.

private boolean
processNibble(int input)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BAD_ENCODINGback to summary
private static final Http2Exception BAD_ENCODING
destback to summary
private byte[] dest
HUFFMAN_COMPLETEback to summary
private static final byte HUFFMAN_COMPLETE
HUFFMAN_COMPLETE_SHIFTback to summary
private static final int HUFFMAN_COMPLETE_SHIFT
HUFFMAN_EMIT_SYMBOLback to summary
private static final byte HUFFMAN_EMIT_SYMBOL
HUFFMAN_EMIT_SYMBOL_SHIFTback to summary
private static final int HUFFMAN_EMIT_SYMBOL_SHIFT
HUFFMAN_FAILback to summary
private static final byte HUFFMAN_FAIL
HUFFMAN_FAIL_SHIFTback to summary
private static final int HUFFMAN_FAIL_SHIFT
HUFFSback to summary
private static final int[] HUFFS

A table of byte tuples (state, flags, output). They are packed together as:

state<<16 + flags<<8 + output

kback to summary
private int k
stateback to summary
private int state

Constructor Detail

HpackHuffmanDecoderback to summary
pack-priv HpackHuffmanDecoder()

Method Detail

decodeback to summary
public AsciiString decode(Buffer buf, int length) throws Http2Exception

Decompresses the given Huffman coded string literal.

Parameters
buf:Buffer

the string literal to be decoded

Returns:AsciiString

the output stream for the compressed data

Exceptions
Http2Exception:
EOS Decoded
processNibbleback to summary
private boolean processNibble(int input)