Top Description Methods
jakarta.mail.util

public Interface LineOutputStream

Imports
java.io.IOException

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.

Method Summary

Modifier and TypeMethod and Description
public void
write(byte[]
the content to write.
content
)

Writes b.length bytes to this output stream.

public void
writeln(String
the string to write before the new line.
s
)

Writes the input string and a new line (CRLF).

public void
writeln()

Writes a new line (CRLF).

Method Detail

writeback to summary
public void write(byte[] content) throws IOException

Writes b.length bytes to this output stream.

Parameters
content:byte[]

the content to write.

Exceptions
IOException:
if an I/O error occurs.
writelnback to summary
public void writeln(String s) throws IOException

Writes the input string and a new line (CRLF).

Parameters
s:String

the string to write before the new line.

Exceptions
IOException:
if an I/O error occurs.
writelnback to summary
public void writeln() throws IOException

Writes a new line (CRLF).

Exceptions
IOException:
if an I/O error occurs.