|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.server.journal.helpers.DecodingBase64OutputStream
public class DecodingBase64OutputStream
Title: DecodingBase64OutputStream.java
Description: Wraps an OutputStream with a Base64 decoder, so when you "write" to the stream, you write Strings of Base64-encoded characters, but the OutputStream receives decoded bytes.
Base64 encoding is defined in Internet RFC 3548, found at http://tools.ietf.org/html/rfc3548 (among other places).
| Constructor Summary | |
|---|---|
DecodingBase64OutputStream(java.io.OutputStream stream)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the writer. |
void |
write(java.lang.String data)
Add Base64-encoded characters to be decoded. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DecodingBase64OutputStream(java.io.OutputStream stream)
stream - the destination for the decoded bytes.| Method Detail |
|---|
public void write(java.lang.String data)
throws java.io.IOException
java.lang.IllegalStateException - if called after close().
java.io.IOException - from the inner OutputStream.
public void close()
throws java.io.IOException
java.io.IOException - from the inner OutputStream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||