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 EncodingUnsupportedOperationException - alwaysEncodingExceptionpublic String encode(String str) throws EncodingException
encode in class Encodingstr - must start with "field-name: "EncodingExceptionEncoding.encode(byte[])public void decode(InputStream in, Buffer bout) throws IOException
decode in class EncodingDecodingExceptionIOExceptionEncoding.decode(byte[], int, int)