Package jakarta.mail.util
Interface LineOutputStream
- 
public interface LineOutputStreamThis 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. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwrite(byte[] content)Writesb.lengthbytes to this output stream.voidwriteln()Writes a new line (CRLF).voidwriteln(String s)Writes the input string and a new line (CRLF). 
 - 
 
- 
- 
Method Detail
- 
writeln
void writeln(String s) throws IOException
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
void writeln() throws IOExceptionWrites a new line (CRLF).- Throws:
 IOException- if an I/O error occurs.
 
- 
write
void write(byte[] content) throws IOExceptionWritesb.lengthbytes to this output stream.- Parameters:
 content- the content to write.- Throws:
 IOException- if an I/O error occurs.
 
 - 
 
 -