public class EightBit extends Encoding
| Constructor and Description |
|---|
EightBit() |
| Modifier and Type | Method and Description |
|---|---|
Buffer | decode(Buffer in)Decode a buffer into another buffer. |
Buffer | decode(byte[] in,
int offset,
int length)Decode a portion of a byte array. |
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()Returns the name of this encoding. |
public Buffer decode(Buffer in)
Encodingdecode in class Encodingin - the buffer containing data to decodeEncoding.decode(byte[], int, int)public Buffer decode(byte[] in, int offset, int length)
Encodingpublic void decode(InputStream in, Buffer out) throws IOException
decode in class Encodingin - the input stream to read data fromout - 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 encodeEncodingException - always