| java.lang.Object java.io.OutputStream java.io.FilterOutputStream net.sourceforge.groboutils.util.io.v1.MimeOutputStream
MimeOutputStream | public class MimeOutputStream extends FilterOutputStream (Code) | | java.io.FilterOutputStream implementation for Mime base 64. Not incredibly
efficient, but it works and is small.
All we need to implement are:
author: Matt Albrecht groboclown@users.sourceforge.net since: 0.9.0 Alpha (early 2000) version: $Date: 2003/02/10 22:52:45 $ |
Method Summary | |
public void | flush() Flush the stream. | public void | write(int c) Write the specified byte , performing mime encoding. |
flush | public void flush() throws IOException(Code) | | Flush the stream. If the stream has saved any characters from the
various write() methods in a buffer, write them immediately to their
intended destination. Then, if that destination is another character or
byte stream, flush it. Thus one flush() invocation will flush all the
buffers in a chain of Writers and OutputStreams.
This version does not buffer, but Mime encoding may have some trailing
stuff, which needs padding.
exception: IOException - If an I/O error occurs |
write | public void write(int c) throws IOException(Code) | | Write the specified byte , performing mime encoding.
Override this method, since all other write methods call it.
exception: IOException - If an I/O error occurs |
|
|