- java.lang.Object
-
- swim.hpack.HpackEncoder
-
public class HpackEncoder extends Object
-
-
Constructor Summary
Constructors Constructor Description HpackEncoder()
HpackEncoder(int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Encoder<?,?>
blockEncoder(Iterator<HpackHeader> headers)
int
capacity()
HpackEncoder
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<?>
huffmanEncodedOutput()
<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)
-
-
-
Method Detail
-
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
public Encoder<?,?> encodeBlock(OutputBuffer<?> output, Iterator<HpackHeader> headers)
-
blockEncoder
public Encoder<?,?> blockEncoder(Iterator<HpackHeader> headers)
-
encodeHeader
public Encoder<?,?> encodeHeader(OutputBuffer<?> output, HpackHeader header, HpackIndexing indexing)
-
headerEncoder
public Encoder<?,?> headerEncoder(HpackHeader header, HpackIndexing indexing)
-
encodeHeader
public Encoder<?,?> encodeHeader(OutputBuffer<?> output, HpackHeader header)
-
headerEncoder
public Encoder<?,?> headerEncoder(HpackHeader header)
-
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
public Encoder<?,?> encodeHeader(OutputBuffer<?> output, int index)
-
headerEncoder
public Encoder<?,?> headerEncoder(int index)
-
encodeInteger
public Encoder<?,?> encodeInteger(OutputBuffer<?> output, int prefixMask, int prefixBits, int value)
-
integerEncoder
public Encoder<?,?> integerEncoder(int prefixMask, int prefixBits, int value)
-
encodeString
public Encoder<?,?> encodeString(OutputBuffer<?> output, Input input, int length, boolean huffmanEncode)
-
encodeString
public Encoder<?,?> encodeString(OutputBuffer<?> output, Input input, boolean huffmanEncode)
-
encodeString
public Encoder<?,?> encodeString(OutputBuffer<?> output, Input input)
-
encodeString
public Encoder<?,?> encodeString(OutputBuffer<?> output, String string, boolean huffmanEncode)
-
encodeString
public Encoder<?,?> encodeString(OutputBuffer<?> output, String string)
-
encodeString
public Encoder<?,?> encodeString(OutputBuffer<?> output, byte[] string, boolean huffmanEncode)
-
stringEncoder
public Encoder<?,?> stringEncoder(byte[] string, boolean huffmanEncode)
-
encodeString
public Encoder<?,?> encodeString(OutputBuffer<?> output, byte[] string)
-
stringEncoder
public Encoder<?,?> stringEncoder(byte[] string)
-
huffmanEncodedOutput
public Output<?> huffmanEncodedOutput()
-
clone
public HpackEncoder clone()
-
-