SK.gnome.dwarf.mail.utils
Class MessageOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
SK.gnome.dwarf.mail.utils.CRLFOutputStream
SK.gnome.dwarf.mail.utils.MessageOutputStream
- public class MessageOutputStream
- extends CRLFOutputStream
Convert lines into the byte-stuffed format.
The filtered data must use the CRLF sequence as line separator. After writing the last
byte of message body the finish()
method must be called to properly handle the
byte-stuffed format.
Fields inherited from class java.io.FilterOutputStream |
out |
Method Summary |
void |
finish()
Finishes the output.
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.io.FilterOutputStream |
close, flush, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageOutputStream
public MessageOutputStream(java.io.OutputStream out)
write
public void write(int b)
throws java.io.IOException
- Overrides:
write
in class CRLFOutputStream
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class CRLFOutputStream
- Throws:
java.io.IOException
finish
public void finish()
throws java.io.IOException
- Finishes the output.
This method must be called when finishing writing a single message to the given
output stream.
- Throws:
java.io.IOException
- if an error occured
Copyright (c) 2004-2005, Gnome Ltd. All rights reserved.