Package jakarta.mail.util
Interface LineOutputStream
public interface LineOutputStream
This interface 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.
The expected use is to write out RFC822 style headers to an output stream.
-
Method Summary
-
Method Details
-
writeln
Writes the input string and a new line (CRLF).- Parameters:
s
- the string to write before the new line.- Throws:
IOException
- if an I/O error occurs.
-
writeln
Writes a new line (CRLF).- Throws:
IOException
- if an I/O error occurs.
-
write
Writesb.length
bytes to this output stream.- Parameters:
content
- the content to write.- Throws:
IOException
- if an I/O error occurs.
-