com.sun.mail.util
Class LineOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.sun.mail.util.LineOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public class LineOutputStream
- extends java.io.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
Fields inherited from class java.io.FilterOutputStream |
out |
Methods inherited from class java.io.FilterOutputStream |
close, flush, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineOutputStream
public LineOutputStream(java.io.OutputStream out)
writeln
public void writeln(java.lang.String s)
throws java.io.IOException
- Throws:
java.io.IOException
writeln
public void writeln()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2011 Sun Microsystems, Inc.. All Rights Reserved.