public class HeaderLine extends Encoding
| Constructor and Description |
|---|
HeaderLine() |
| Modifier and Type | Method and 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()
Returns the name of this encoding.
|
public static final String NAME
public void decode(InputStream in, Buffer bout) throws IOException
decode in class Encodingin - the input stream to read data frombout - the buffer to write decoded data toDecodingException - if decoding failsIOException - if reading from input stream failsEncoding.decode(byte[], int, int)public String encode(byte[] in) throws EncodingException
encode in class Encodingin - the byte array to encodeUnsupportedOperationException - alwaysEncodingException - if encoding failspublic String encode(String str) throws EncodingException
encode in class Encodingstr - must start with "field-name: ", must have non-whitespace after thatEncodingException - if encoding failsEncoding.encode(byte[])