|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
jetif.ext.Base64OutputStream
A Base64OutputStream is an output stream for encoding data to
Base64 encoding (see RFC2045).
NOTICE: Don't forgot to call close() when all data was send,
otherwise may cause data losing problem.
| Constructor Summary | |
Base64OutputStream(Writer writer)
Construct from a underlying writer object. |
|
| Method Summary | |
void |
close()
Finish the encoding stream, output padding characters if needed, close the underlying writer. |
void |
finish()
Finish the encoding stream, output padding characters if needed. |
void |
flush()
Flush the underlying writer. |
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
Output a byte to this output stream. |
| Methods inherited from class java.io.OutputStream |
write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Base64OutputStream(Writer writer)
writer - the writer to output the encoded data.| Method Detail |
public void write(int b)
throws IOException
b - the byte to be wrote, only lower 8 bits will be used.
IOException - if I/O error occurs.
public void write(byte[] b,
int off,
int len)
throws IOException
IOException
public void finish()
throws IOException
IOException - if I/O error occurs.
public void close()
throws IOException
IOException - if I/O error occurs.
public void flush()
throws IOException
IOException
|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||