public class HPackHuffman
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
HPackHuffman.HuffmanCode |
| Modifier and Type | Field and Description |
|---|---|
protected static StringManager |
sm |
| Constructor and Description |
|---|
HPackHuffman() |
| Modifier and Type | Method and Description |
|---|---|
static void |
decode(java.nio.ByteBuffer data,
int length,
java.lang.StringBuilder target)
Decodes a huffman encoded string into the target StringBuilder.
|
static boolean |
encode(java.nio.ByteBuffer buffer,
java.lang.String toEncode,
boolean forceLowercase)
Encodes the given string into the buffer.
|
protected static final StringManager sm
public static void decode(java.nio.ByteBuffer data,
int length,
java.lang.StringBuilder target)
throws HpackException
data - The byte bufferlength - The length of data from the buffer to decodetarget - The target for the decompressed dataHpackException - If the Huffman encoded value in HPACK headers did
not end with EOS paddingpublic static boolean encode(java.nio.ByteBuffer buffer,
java.lang.String toEncode,
boolean forceLowercase)
buffer - The buffer to encode intotoEncode - The string to encodeforceLowercase - If the string should be encoded in lower caseCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.