Package org.eclipse.angus.mail.util
Class LineOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.eclipse.angus.mail.util.LineOutputStream
- All Implemented Interfaces:
LineOutputStream,Closeable,Flushable,AutoCloseable
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, Bill Shannon
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.mail.util.LineOutputStream
write
-
Constructor Details
-
LineOutputStream
-
LineOutputStream
- Parameters:
out- the OutputStreamallowutf8- allow UTF-8 characters?- Since:
- JavaMail 1.6
-
-
Method Details
-
writeln
- Specified by:
writelnin interfaceLineOutputStream- Throws:
IOException
-
writeln
- Specified by:
writelnin interfaceLineOutputStream- Throws:
IOException
-