public class HeaderLine extends Encoding
Constructor and Description |
---|
HeaderLine() |
Modifier and Type | Method and Description |
---|---|
ReadBuffer |
decode(byte[] in,
int offset,
int length)
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 ReadBuffer decode(byte[] in, int offset, int length) throws DecodingException
decode
in class Encoding
DecodingException