public class Base64Decoder extends Object
Base64Encoder| Constructor and Description |
|---|
Base64Decoder(InputStream in,
OutputStream out)
Create a decoder to decode a stream.
|
Base64Decoder(String input)
Create a decoder to decode a String.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Test the decoder.
|
void |
process()
Do the actual decoding.
|
String |
processString()
Do the decoding, and return a String.
|
public Base64Decoder(String input)
input - The string to be decoded.public Base64Decoder(InputStream in, OutputStream out)
in - The input stream (to be decoded).out - The output stream, to write decoded data to.public void process()
throws IOException,
Base64FormatException
IOException - If the input or output stream accesses failed.Base64FormatException - If the input stream is not compliant
with the BASE64 specification.public String processString() throws Base64FormatException
RuntimeException - If the object wasn't constructed to
decode a String.Base64FormatException - If the input string is not compliant
with the BASE64 specification.public static void main(String[] args)
Copyright © 2014. All rights reserved.