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