public class EightBit extends Encoding
Constructor and Description |
---|
EightBit() |
Modifier and Type | Method and Description |
---|---|
ReadBuffer |
decode(byte[] in,
int offset,
int length) |
ReadBuffer |
decode(ReadBuffer in)
This implementation just calls decode(in.content, in.offset, in.length).
|
String |
encode(byte[] in)
TODO would be nice to implement this, as it is supported on the project server,
but content must be CRLF terminated with a max of 998 chars per line.
|
String |
getName() |
public String encode(byte[] in) throws EncodingException
encode
in class Encoding
EncodingException
- alwayspublic ReadBuffer decode(byte[] in, int offset, int length) throws DecodingException
decode
in class Encoding
DecodingException
public ReadBuffer decode(ReadBuffer in) throws DecodingException
Encoding
decode
in class Encoding
DecodingException
Encoding.decode(byte[], int, int)