public class Binary extends Encoding
Constructor and Description |
---|
Binary() |
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)
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
public 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)