Module com.sun.xml.messaging.saaj
Class OutputUtil
java.lang.Object
com.sun.xml.messaging.saaj.packaging.mime.util.OutputUtil
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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
writeAsAscii
(String s, OutputStream out) Writes a string as ASCII string.static void
writeln
(OutputStream out) static void
writeln
(String s, OutputStream out)
-
Method Details
-
writeln
- Throws:
IOException
-
writeAsAscii
Writes a string as ASCII string.- Parameters:
s
- string.out
- output stream.- Throws:
IOException
- if an I/O error occurs.
-
writeln
- Throws:
IOException
-