|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
net.sourceforge.groboutils.util.io.v1.MimeOutputStream
java.io.FilterOutputStream implementation for Mime base 64. Not incredibly efficient, but it works and is small.
All we need to implement are:
| Field Summary |
| Fields inherited from class java.io.FilterOutputStream |
out |
| Constructor Summary | |
MimeOutputStream(java.io.OutputStream o)
Constructor! |
|
| Method Summary | |
void |
flush()
Flush the stream. |
void |
write(int c)
Write the specified byte, performing mime encoding. |
| Methods inherited from class java.io.FilterOutputStream |
close, write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MimeOutputStream(java.io.OutputStream o)
| Method Detail |
public void write(int c)
throws java.io.IOException
byte, performing mime encoding.
Override this method, since all other write methods call it.
java.io.IOException - If an I/O error occurs
public void flush()
throws java.io.IOException
This version does not buffer, but Mime encoding may have some trailing stuff, which needs padding.
java.io.IOException - If an I/O error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||