public static class Message.RecipientType
extends java.lang.Object
implements java.io.Serializable
Message msg = folder.getMessages(1); Address[] a = m.getRecipients(Message.RecipientType.TO);
Modifier and Type | Field and Description |
---|---|
static Message.RecipientType |
BCC
The "Bcc" (blind carbon copy) recipients.
|
static Message.RecipientType |
CC
The "Cc" (carbon copy) recipients.
|
static Message.RecipientType |
TO
The "To" (primary) recipients.
|
protected java.lang.String |
type
The type of recipient, usually the name of a corresponding
Internet standard header.
|
Modifier | Constructor and Description |
---|---|
protected |
Message.RecipientType(java.lang.String type)
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
readResolve()
When deserializing a RecipientType, we need to make sure to
return only one of the known static final instances defined
in this class.
|
java.lang.String |
toString() |
public static final Message.RecipientType TO
public static final Message.RecipientType CC
public static final Message.RecipientType BCC
protected java.lang.String type
protected Message.RecipientType(java.lang.String type)
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
readResolve
method that checks for their known
instances before calling this super method.java.io.ObjectStreamException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2012 Oracle. All Rights Reserved.