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) |
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() |
public String encode(byte[] in) throws EncodingException
Encoding
encode
in class Encoding
EncodingException
- alwayspublic Buffer decode(byte[] in, int offset, int length) throws DecodingException
decode
in class Encoding
DecodingException
- on illegal characterspublic Buffer decode(Buffer in)
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)