public class EightBit extends Encoding
Constructor and Description |
---|
EightBit() |
Modifier and Type | Method and Description |
---|---|
Buffer |
decode(Buffer in)
This implementation just calls decode(in.content, in.offset, in.length).
|
Buffer |
decode(byte[] in,
int offset,
int length) |
void |
decode(InputStream in,
Buffer out)
Copy in to out, unchanged
|
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 Buffer decode(byte[] in, int offset, int length)
public Buffer decode(Buffer in)
Encoding
decode
in class Encoding
Encoding.decode(byte[], int, int)
public void decode(InputStream in, Buffer out) throws IOException
decode
in class Encoding
DecodingException
IOException
Encoding.decode(byte[], int, int)