| java.lang.Object org.w3c.tools.codec.Base64Decoder
Method Summary | |
public static void | main(String args) Test the decoder. | public void | process() Do the actual decoding. | public String | processString() Do the decoding, and return a String.
This methods should be called when the decoder is used in
String mode. |
Base64Decoder | public Base64Decoder(String input)(Code) | | Create a decoder to decode a String.
Parameters: input - The string to be decoded. |
Base64Decoder | public Base64Decoder(InputStream in, OutputStream out)(Code) | | Create a decoder to decode a stream.
Parameters: in - The input stream (to be decoded). Parameters: out - The output stream, to write decoded data to. |
main | public static void main(String args)(Code) | | Test the decoder.
Run it with one argument: the string to be decoded, it will print out
the decoded value.
|
process | public void process() throws IOException, Base64FormatException(Code) | | Do the actual decoding.
Process the input stream by decoding it and emiting the resulting bytes
into the output stream.
exception: IOException - If the input or output stream accesses failed. exception: Base64FormatException - If the input stream is not compliantwith the BASE64 specification. |
processString | public String processString() throws Base64FormatException(Code) | | Do the decoding, and return a String.
This methods should be called when the decoder is used in
String mode. It decodes the input string to an output string
that is returned.
exception: RuntimeException - If the object wasn't constructed todecode a String. exception: Base64FormatException - If the input string is not compliant with the BASE64 specification. |
|
|