- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.eclipse.angus.mail.util.LineOutputStream
-
- All Implemented Interfaces:
LineOutputStream,java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class LineOutputStream extends java.io.FilterOutputStream implements LineOutputStream
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 voidwriteln()Writes a new line (CRLF).voidwriteln(java.lang.String s)Writes the input string and a new line (CRLF).-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.mail.util.LineOutputStream
write
-
-
-
-
Method Detail
-
writeln
public void writeln(java.lang.String s) throws java.io.IOExceptionDescription copied from interface:LineOutputStreamWrites the input string and a new line (CRLF).- Specified by:
writelnin interfaceLineOutputStream- Parameters:
s- the string to write before the new line.- Throws:
java.io.IOException- if an I/O error occurs.
-
writeln
public void writeln() throws java.io.IOExceptionDescription copied from interface:LineOutputStreamWrites a new line (CRLF).- Specified by:
writelnin interfaceLineOutputStream- Throws:
java.io.IOException- if an I/O error occurs.
-
-