Package 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
,java.lang.AutoCloseable
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.
-
-
Constructor Summary
Constructors Constructor Description LineOutputStream(java.io.OutputStream out)
LineOutputStream(java.io.OutputStream out, boolean allowutf8)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeln()
void
writeln(java.lang.String s)
-