Class HuffmanDecoder
java.lang.Object
org.eclipse.jetty.http.compression.HuffmanDecoder
Used to decoded Huffman encoded strings.
Characters which are illegal field-vchar values are replaced with either ' ' or '?' as described in RFC9110
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(ByteBuffer buffer) voidreset()voidsetLength(int length)
-
Constructor Details
-
HuffmanDecoder
public HuffmanDecoder()
-
-
Method Details
-
setLength
public void setLength(int length) - Parameters:
length- in bytes of the huffman data.
-
decode
- Parameters:
buffer- the buffer containing the Huffman encoded bytes.- Returns:
- the decoded String.
- Throws:
EncodingException- if the huffman encoding is invalid.
-
reset
public void reset()
-