public class HPackHuffman extends Object
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
HPackHuffman.HuffmanCode |
| Constructor | Description |
|---|---|
HPackHuffman() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
decode(ByteBuffer data,
int length,
StringBuilder target) |
Decodes a huffman encoded string into the target StringBuilder.
|
static boolean |
encode(ByteBuffer buffer,
String toEncode,
boolean forceLowercase) |
Encodes the given string into the buffer.
|
public static void decode(ByteBuffer data, int length, StringBuilder target) throws HpackException
data - The byte bufferlength - The data lengthtarget - The target for the decompressed dataHpackExceptionpublic static boolean encode(ByteBuffer buffer, String toEncode, boolean forceLowercase)
buffer - The buffer to encode intotoEncode - The string to encodeforceLowercase - If the string should be encoded in lower caseCopyright © 2018. All rights reserved.