|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.w3c.tools.codec.Base64Decoder
public class Base64Decoder
Decode a BASE64 encoded input stream to some output stream. This class implements BASE64 decoding, as specified in the MIME specification.
Base64Encoder| Constructor Summary | |
|---|---|
Base64Decoder(InputStream in,
OutputStream out)
Create a decoder to decode a stream. |
|
Base64Decoder(String input)
Create a decoder to decode a String. |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
Test the decoder. |
void |
process()
Do the actual decoding. |
String |
processString()
Do the decoding, and return a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||