| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final int[] | |
| private final HpackHuffmanEncoder. | |
| private final HpackHuffmanEncoder. | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private | HpackHuffmanEncoder(int[]
the Huffman codes indexed by symbol codes, byte[] the length of each Huffman code lengths)Creates a new Huffman encoder with the specified Huffman coding. |
| Modifier and Type | Method and Description |
|---|---|
| public void | encode(Buffer
the output stream for the compressed data out, CharSequence the string literal to be Huffman encoded data)Compresses the input string literal using the Huffman coding. |
| private void | |
| pack-priv int | Returns: the number of bytes required to Huffman encodedatathe string literal to be Huffman encoded data)Returns the number of bytes required to Huffman encode the input string literal. |
| private int |
| codes | back to summary |
|---|---|
| private final int[] codes | |
| encodedLengthProcessor | back to summary |
|---|---|
| private final HpackHuffmanEncoder. | |
| encodeProcessor | back to summary |
|---|---|
| private final HpackHuffmanEncoder. | |
| lengths | back to summary |
|---|---|
| private final byte[] lengths | |
| HpackHuffmanEncoder | back to summary |
|---|---|
| pack-priv HpackHuffmanEncoder() | |
| HpackHuffmanEncoder | back to summary |
|---|---|
| private HpackHuffmanEncoder(int[] codes, byte[] lengths) Creates a new Huffman encoder with the specified Huffman coding.
| |
| encode | back to summary |
|---|---|
| public void encode(Buffer out, CharSequence data) Compresses the input string literal using the Huffman coding.
| |
| encodeSlowPath | back to summary |
|---|---|
| private void encodeSlowPath(Buffer out, CharSequence data) | |
| getEncodedLength | back to summary |
|---|---|
| pack-priv int getEncodedLength(CharSequence data) Returns the number of bytes required to Huffman encode the input string literal.
| |
| getEncodedLengthSlowPath | back to summary |
|---|---|
| private int getEncodedLengthSlowPath(CharSequence data) | |
| Modifier and Type | Field and Description |
|---|---|
| private long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| public boolean | |
| pack-priv void |
| len | back to summary |
|---|---|
| private long len | |
| EncodedLengthProcessor | back to summary |
|---|---|
| private EncodedLengthProcessor() | |
| length | back to summary |
|---|---|
| pack-priv int length() | |
| process | back to summary |
|---|---|
| public boolean process(byte value) Implements io.
| |
| reset | back to summary |
|---|---|
| pack-priv void reset() | |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private int | |
| pack-priv Buffer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public boolean |
| current | back to summary |
|---|---|
| private long current | |
| n | back to summary |
|---|---|
| private int n | |
| out | back to summary |
|---|---|
| pack-priv Buffer out | |
| EncodeProcessor | back to summary |
|---|---|
| private EncodeProcessor() | |
| end | back to summary |
|---|---|
| pack-priv void end() | |
| process | back to summary |
|---|---|
| public boolean process(byte value) Implements io.
| |