public class Base64 extends Encoding
| Constructor and Description |
|---|
Base64() |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(InputStream in,
Buffer bout)
Decode an input stream into a buffer.
|
String |
encode(byte[] in)
Encode a byte array to a ASCII or ISO-8859-1 String.
|
void |
encode(InputStream in,
Writer strBuf)
More efficient than super
|
String |
getName()
Returns the name of this encoding.
|
public void decode(InputStream in, Buffer bout) throws IOException
Encodingdecode in class Encodingin - the input stream to read data frombout - 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 encodeEncodingExceptionpublic void encode(InputStream in, Writer strBuf) throws IOException
encode in class Encodingin - strBuf - the writer to write encoded output toIOException - if reading from stream or writing failsEncoding.encode(String)