com.sun.mail.util
Class LineOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.sun.mail.util.LineOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class LineOutputStream
- extends FilterOutputStream
This class is to support writing out Strings as a sequence of bytes
terminated by a CRLF sequence. The String must contain only US-ASCII
characters.
The expected use is to write out RFC822 style headers to an output
stream.
- Author:
- John Mani
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineOutputStream
public LineOutputStream(OutputStream out)
writeln
public void writeln(String s)
throws IOException
- Throws:
IOException
writeln
public void writeln()
throws IOException
- Throws:
IOException
Copyright © 2011 Sun Microsystems, Inc.. All Rights Reserved.