|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjavax.mail.Message.RecipientType
public static class Message.RecipientType
この内部クラスは、Message クラスにより許可される受信者の型を定義します。 現在定義されている型は TO、CC、及び BCC です。 このクラスは protected コンストラクタのみを持つ為、 新規の Recipient の型がクラス又はサブクラスに制限されます。 これは許可される Recipient の型の列挙を効果的に実装します。 以下のサンプルコードは、このクラスを使用してメッセージから "TO" 受信者を取得する方法を示します。
Message msg = folder.getMessages(1); Address[] a = m.getRecipients(Message.RecipientType.TO);
Message.getRecipients(javax.mail.Message.RecipientType)
,
Message.setRecipients(javax.mail.Message.RecipientType, javax.mail.Address[])
,
Message.addRecipients(javax.mail.Message.RecipientType, javax.mail.Address[])
,
直列化された形式フィールドの概要 | |
---|---|
static Message.RecipientType |
BCC
"Bcc" (ブラインドコピーの) 受信者です。 |
static Message.RecipientType |
CC
"Cc" (写しの) 受信者です。 |
static Message.RecipientType |
TO
"To" (主要な) 受信者です。 |
protected String |
type
受信者の型です。 |
コンストラクタの概要 | |
---|---|
protected |
Message.RecipientType(String type)
サブクラスにより使用されるコンストラクタです。 |
メソッドの概要 | |
---|---|
protected Object |
readResolve()
RecipientType の直列化を解除する際、このクラスで定義される 既知の static final インスタンスを唯 1 つ返す事を保証する必要があります。 |
String |
toString()
|
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
---|
public static final Message.RecipientType TO
public static final Message.RecipientType CC
public static final Message.RecipientType BCC
protected String type
コンストラクタの詳細 |
---|
protected Message.RecipientType(String type)
メソッドの詳細 |
---|
protected Object readResolve() throws ObjectStreamException
readResolve
メソッドを実装しなければなりません。
ObjectStreamException
public String toString()
Object
内の toString
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |