| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| private static final byte | |
| private static final int | |
| private static final int[] | PREFIX_TABLE
table that contains powers of two, used as both bitmask and to quickly calculate 2^n |
| private static final StringManager | |
| pack-priv static final Hpack. | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static int | Returns: The encoded integer, or -1 if there was not enough dataThe buffer that contains the integer source, int The encoding prefix length n)Decodes an integer in the HPACK prefix format. |
| pack-priv static void | encodeInteger(ByteBuffer
The buffer that contains the integer source, int The integer to encode value, int The encoding prefix length n)Encodes an integer in the HPACK prefix format. |
| pack-priv static char |
| DEFAULT_TABLE_SIZE | back to summary |
|---|---|
| pack-priv static final int DEFAULT_TABLE_SIZE | |
| LOWER_DIFF | back to summary |
|---|---|
| private static final byte LOWER_DIFF | |
| MAX_INTEGER_OCTETS | back to summary |
|---|---|
| private static final int MAX_INTEGER_OCTETS | |
| PREFIX_TABLE | back to summary |
|---|---|
| private static final int[] PREFIX_TABLE table that contains powers of two, used as both bitmask and to quickly calculate 2^n | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| STATIC_TABLE | back to summary |
|---|---|
| pack-priv static final Hpack. | |
| STATIC_TABLE_LENGTH | back to summary |
|---|---|
| pack-priv static final int STATIC_TABLE_LENGTH | |
| Hpack | back to summary |
|---|---|
| private Hpack() | |
| decodeInteger | back to summary |
|---|---|
| pack-priv static int decodeInteger(ByteBuffer source, int n) throws HpackException Decodes an integer in the HPACK prefix format. If the return value is -1 it means that there was not enough data in the buffer to complete the decoding sequence. If this method returns -1 then the source buffer will not have been modified.
| |
| encodeInteger | back to summary |
|---|---|
| pack-priv static void encodeInteger(ByteBuffer source, int value, int n) Encodes an integer in the HPACK prefix format. This method assumes that the buffer has already had the first 8-n bits filled. As such it will modify the last byte that is already present in the buffer, and potentially add more if required
| |
| toLower | back to summary |
|---|---|
| pack-priv static char toLower(char c) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv final int | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| name | back to summary |
|---|---|
| pack-priv final String name | |
| size | back to summary |
|---|---|
| pack-priv final int size | |
| value | back to summary |
|---|---|
| pack-priv final String value | |
| HeaderField | back to summary |
|---|---|
| pack-priv HeaderField(String name, String value) | |