public class Base64Encoder extends Object
Base64Decoder| Constructor and Description |
|---|
Base64Encoder(InputStream in,
OutputStream out)
Create a new Base64 encoder, encoding input to output.
|
Base64Encoder(String input)
Create a new Base64 encoder, to encode the given string.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Testing the encoder.
|
void |
process()
Process the data: encode the input stream to the output stream.
|
String |
processString()
Encode the content of this encoder, as a string.
|
public Base64Encoder(String input)
input - The String to be encoded.public Base64Encoder(InputStream in, OutputStream out)
in - The input stream to be encoded.out - The output stream, to write encoded data to.public void process()
throws IOException
IOException - If we weren't able to access the input stream or
the output stream.public String processString()
public static void main(String[] args)
Copyright © 2014. All rights reserved.