|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
it.sauronsoftware.base64.Base64OutputStream
A base64 decoding output stream.
It encodes in base64 everything passed to the stream, and it puts the encoded data into the underlying stream.
Constructor Summary | |
Base64OutputStream(java.io.OutputStream outputStream)
It builds a base64 encoding output stream writing the encoded data in the given underlying stream. |
|
Base64OutputStream(java.io.OutputStream outputStream,
int wrapAt)
It builds a base64 encoding output stream writing the encoded data in the given underlying stream. |
Method Summary | |
void |
close()
|
protected void |
commit()
It commits 4 bytes to the underlying stream. |
void |
write(int b)
|
Methods inherited from class java.io.OutputStream |
flush, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Base64OutputStream(java.io.OutputStream outputStream)
It builds a base64 encoding output stream writing the encoded data in the given underlying stream.
The encoded data is wrapped to a new line (with a CRLF sequence) every 76 bytes sent to the underlying stream.
outputStream
- The underlying stream.public Base64OutputStream(java.io.OutputStream outputStream, int wrapAt)
It builds a base64 encoding output stream writing the encoded data in the given underlying stream.
The encoded data is wrapped to a new line (with a CRLF sequence) every wrapAt bytes sent to the underlying stream. If the wrapAt supplied value is less than 1 the encoded data will not be wrapped.
outputStream
- The underlying stream.wrapAt
- The max line length for encoded data. If less than 1 no wrap
is applied.Method Detail |
public void write(int b) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
protected void commit() throws java.io.IOException
It commits 4 bytes to the underlying stream.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |