Class Overview
In addition to converting lines into the canonical format,
i.e., terminating lines with the CRLF sequence, escapes the "."
by adding another "." to any "." that appears in the beginning
of a line. See RFC821 section 4.5.2.
Summary
| Public Methods |
|
void
|
ensureAtBOL()
Ensure we're at the beginning of a line.
|
|
void
|
flush()
Override flush method in FilterOutputStream.
|
|
void
|
write(byte[] b, int off, int len)
|
|
void
|
write(int b)
|
|
[Expand]
Inherited Methods |
From class
com.google.code.com.sun.mail.util.CRLFOutputStream
|
From class
java.io.FilterOutputStream
|
void
|
close()
|
|
void
|
flush()
|
|
void
|
write(byte[] arg0, int arg1, int arg2)
|
|
void
|
write(byte[] arg0)
|
|
void
|
write(int arg0)
|
|
From class
java.io.OutputStream
|
void
|
close()
|
|
void
|
flush()
|
|
void
|
write(byte[] arg0, int arg1, int arg2)
|
|
void
|
write(byte[] arg0)
|
|
abstract
void
|
write(int arg0)
|
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
java.io.Closeable
|
From interface
java.io.Flushable
|
Public Constructors
public
SMTPOutputStream
(OutputStream os)
Public Methods
public
void
ensureAtBOL
()
Ensure we're at the beginning of a line.
Write CRLF if not.
public
void
flush
()
Override flush method in FilterOutputStream.
The MimeMessage writeTo method flushes its buffer at the end,
but we don't want to flush data out to the socket until we've
also written the terminating "\r\n.\r\n".
We buffer nothing so there's nothing to flush. We depend
on the fact that CRLFOutputStream also buffers nothing.
SMTPTransport will manually flush the socket before reading
the response.
public
void
write
(byte[] b, int off, int len)
public
void
write
(int b)