public class SevenBit extends Encoding
| Constructor and Description |
|---|
SevenBit() |
| Modifier and Type | Method and Description |
|---|---|
Buffer | decode(Buffer in)We don't do any 8-bit checks like we do for decode(byte[]) |
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
We don't do any 8-bit checks like we do for decode(byte[]) |
String | encode(byte[] in)Encode a byte array to a ASCII or ISO-8859-1 String. |
String | getName()Returns the name of this encoding. |
public Buffer decode(Buffer in)
decode in class Encodingin - the buffer containing data to decodeEncoding.decode(byte[], int, int)public Buffer decode(byte[] in, int offset, int length) throws DecodingException
Encodingdecode in class Encodingin - the byte array to decodeoffset - the starting position in the arraylength - the number of bytes to decodeDecodingException - on illegal characterspublic 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
Encodingencode in class Encodingin - the byte array to encodeEncodingException - always