| Modifier | Constructor and Description |
|---|---|
protected |
Base(byte[] alphabet,
boolean padding)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(byte[] input)
Decodes characters in
input and return decoded bytes. |
byte[] |
decode(InputStream input)
Decodes characters from
input and return decoded bytes. |
void |
decode(InputStream input,
OutputStream output)
Decodes characters from
input and writes decoded bytes to
output. |
void |
decode(Reader input,
OutputStream output)
Decodes characters from
input and writes decoded bytes to
output. |
byte[] |
encode(byte[] input)
Encodes bytes in
input and returns encoded characters. |
byte[] |
encode(InputStream input)
Encodes bytes from
input and return encoded characters. |
void |
encode(InputStream input,
OutputStream output)
Encodes bytes from
input and writes to output. |
void |
encode(InputStream input,
Writer output)
Encodes bytes from given
input and writes those encoded
characters to output. |
protected Base(byte[] alphabet,
boolean padding)
alphabet - alphabet to be usedpadding - flag for paddingpublic byte[] encode(byte[] input)
throws IOException
input and returns encoded characters.input - byte inputIOException - if an I/O error occurs.public byte[] encode(InputStream input) throws IOException
input and return encoded characters.input - byte inputIOException - if an I/O error occurs.public final void encode(InputStream input, OutputStream output) throws IOException
input and writes to output.input - inputoutput - outputIOException - if an I/O error occurs.public final void encode(InputStream input, Writer output) throws IOException
input and writes those encoded
characters to output.input - binary inputoutput - character outputIOException - if an I/O error occurspublic final byte[] decode(byte[] input)
throws IOException
input and return decoded bytes.input - character inputIOException - if an I/O error occurs.public final byte[] decode(InputStream input) throws IOException
input and return decoded bytes.input - character inputIOException - if an I/O error occurs.public final void decode(InputStream input, OutputStream output) throws IOException
input and writes decoded bytes to
output.input - inputoutput - outputIOException - if an I/O error occurs.public final void decode(Reader input, OutputStream output) throws IOException
input and writes decoded bytes to
output.input - character inputoutput - binary outputIOException - if I/O error occursCopyright © 2011. All Rights Reserved.