java.lang.Object
swim.hpack.HpackEncoder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEncoder<?,
?> blockEncoder
(Iterator<HpackHeader> headers) int
capacity()
clone()
Encoder<?,
?> encodeBlock
(OutputBuffer<?> output, Iterator<HpackHeader> headers) Encoder<?,
?> encodeHeader
(OutputBuffer<?> output, int index) Encoder<?,
?> encodeHeader
(OutputBuffer<?> output, int index, Encoder<?, ?> nameEncoder, Encoder<?, ?> valueEncoder, HpackIndexing indexing) Encoder<?,
?> encodeHeader
(OutputBuffer<?> output, HpackHeader header) Encoder<?,
?> encodeHeader
(OutputBuffer<?> output, HpackHeader header, HpackIndexing indexing) Encoder<?,
?> encodeInteger
(OutputBuffer<?> output, int prefixMask, int prefixBits, int value) Encoder<?,
?> encodeString
(OutputBuffer<?> output, byte[] string) Encoder<?,
?> encodeString
(OutputBuffer<?> output, byte[] string, boolean huffmanEncode) Encoder<?,
?> encodeString
(OutputBuffer<?> output, String string) Encoder<?,
?> encodeString
(OutputBuffer<?> output, String string, boolean huffmanEncode) Encoder<?,
?> encodeString
(OutputBuffer<?> output, Input input) Encoder<?,
?> encodeString
(OutputBuffer<?> output, Input input, boolean huffmanEncode) Encoder<?,
?> encodeString
(OutputBuffer<?> output, Input input, int length, boolean huffmanEncode) int
getIndex
(byte[] name) Encoder<?,
?> headerEncoder
(int index) Encoder<?,
?> headerEncoder
(int index, Encoder<?, ?> nameEncoder, Encoder<?, ?> valueEncoder, HpackIndexing indexing) Encoder<?,
?> headerEncoder
(HpackHeader header) Encoder<?,
?> headerEncoder
(HpackHeader header, HpackIndexing indexing) Output<?>
<T> Output<T>
huffmanEncodedOutput
(Output<T> output) Encoder<?,
?> integerEncoder
(int prefixMask, int prefixBits, int value) int
length()
void
setCapacity
(int capacity) int
size()
Encoder<?,
?> stringEncoder
(byte[] string) Encoder<?,
?> stringEncoder
(byte[] string, boolean huffmanEncode) Encoder<?,
?> stringEncoder
(String string) Encoder<?,
?> stringEncoder
(String string, boolean huffmanEncode) Encoder<?,
?> stringEncoder
(Input input) Encoder<?,
?> stringEncoder
(Input input, boolean huffmanEncode) Encoder<?,
?> stringEncoder
(Input input, int length, boolean huffmanEncode)
-
Constructor Details
-
HpackEncoder
public HpackEncoder(int capacity) -
HpackEncoder
public HpackEncoder()
-
-
Method Details
-
size
public int size() -
capacity
public int capacity() -
setCapacity
public void setCapacity(int capacity) -
length
public int length() -
getIndex
public int getIndex(byte[] name) -
encodeBlock
-
blockEncoder
-
encodeHeader
public Encoder<?,?> encodeHeader(OutputBuffer<?> output, HpackHeader header, HpackIndexing indexing) -
headerEncoder
-
encodeHeader
-
headerEncoder
-
encodeHeader
public Encoder<?,?> encodeHeader(OutputBuffer<?> output, int index, Encoder<?, ?> nameEncoder, Encoder<?, ?> valueEncoder, HpackIndexing indexing) -
headerEncoder
public Encoder<?,?> headerEncoder(int index, Encoder<?, ?> nameEncoder, Encoder<?, ?> valueEncoder, HpackIndexing indexing) -
encodeHeader
-
headerEncoder
-
encodeInteger
public Encoder<?,?> encodeInteger(OutputBuffer<?> output, int prefixMask, int prefixBits, int value) -
integerEncoder
-
encodeString
public Encoder<?,?> encodeString(OutputBuffer<?> output, Input input, int length, boolean huffmanEncode) -
stringEncoder
-
encodeString
-
stringEncoder
-
encodeString
-
stringEncoder
-
encodeString
-
stringEncoder
-
encodeString
-
stringEncoder
-
encodeString
-
stringEncoder
-
encodeString
-
stringEncoder
-
huffmanEncodedOutput
-
huffmanEncodedOutput
-
clone
-