public class HeaderLine extends Encoding
Constructor | Description |
---|---|
HeaderLine() |
Modifier and Type | Method | Description |
---|---|---|
void |
decode(InputStream in,
Buffer bout) |
Decode all the header lines, up through \r\n\r\n,
and puts them in the ReadBuffer, including the \r\n\r\n
|
String |
encode(byte[] in) |
This will split multibyte chars across lines,
see 4th ref above
|
String |
encode(String str) |
Encode a single header line ONLY.
|
String |
getName() |
public static final String NAME
public String encode(byte[] in) throws EncodingException
encode
in class Encoding
UnsupportedOperationException
- alwaysEncodingException
public String encode(String str) throws EncodingException
encode
in class Encoding
str
- must start with "field-name: "EncodingException
Encoding.encode(byte[])
public void decode(InputStream in, Buffer bout) throws IOException
decode
in class Encoding
DecodingException
IOException
Encoding.decode(byte[], int, int)