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
 
クラス java.io.FilterOutputStream から継承されたフィールド
out
 
コンストラクタの概要
SMTPOutputStream(OutputStream os)
          コンストラクタです。
 
メソッドの概要
 void flush()
          FilterOutputStream の flush メソッドをオーバーライドします。
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
クラス com.sun.mail.util.CRLFOutputStream から継承されたメソッド
write, writeln
 
クラス java.io.FilterOutputStream から継承されたメソッド
close
 
クラス 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