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
-
Method Summary
Modifier and TypeMethodDescriptiondecode
(ByteBuffer buffer) void
reset()
void
setLength
(int length) Set in bytes of the huffman data..
-
Constructor Details
-
HuffmanDecoder
public HuffmanDecoder()
-
-
Method Details
-
setLength
public void setLength(int length) Set in bytes of the huffman data..- 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()
-