com.sun.mail.smtp
クラス SMTPOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.sun.mail.util.CRLFOutputStream
com.sun.mail.smtp.SMTPOutputStream
- すべての実装されたインタフェース:
- Closeable, Flushable
public final class SMTPOutputStream
- extends com.sun.mail.util.CRLFOutputStream
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.
RFC821 section 4.5.2 を参照して下さい。
- 関連項目:
CRLFOutputStream
クラス com.sun.mail.util.CRLFOutputStream から継承されたフィールド |
lastb, newline |
メソッドの概要 |
void |
flush()
FilterOutputStream の flush メソッドをオーバーライドします。 |
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
クラス com.sun.mail.util.CRLFOutputStream から継承されたメソッド |
write, writeln |
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SMTPOutputStream
public SMTPOutputStream(OutputStream os)
- コンストラクタです。
write
public void write(int b)
throws IOException
- オーバーライド:
- クラス
com.sun.mail.util.CRLFOutputStream
内の write
- 例外:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- オーバーライド:
- クラス
com.sun.mail.util.CRLFOutputStream
内の write
- 例外:
IOException
flush
public void flush()
- FilterOutputStream の flush メソッドをオーバーライドします。
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.
- 定義:
- インタフェース
Flushable
内の flush
- オーバーライド:
- クラス
FilterOutputStream
内の flush