public static class Message.RecipientType extends Object implements Serializable
Message msg = folder.getMessages(1); Address[] a = m.getRecipients(Message.RecipientType.TO);
| Modifier and Type | Field and Description | 
|---|---|
| static Message.RecipientType | BCCThe "Bcc" (blind carbon copy) recipients. | 
| static Message.RecipientType | CCThe "Cc" (carbon copy) recipients. | 
| static Message.RecipientType | TOThe "To" (primary) recipients. | 
| protected String | typeThe type of recipient, usually the name of a corresponding
 Internet standard header. | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | RecipientType(String type)Constructor for use by subclasses. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected 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. | 
| String | toString() | 
public static final Message.RecipientType TO
public static final Message.RecipientType CC
public static final Message.RecipientType BCC
protected String type
protected RecipientType(String type)
type - the recipient typeprotected Object readResolve() throws ObjectStreamException
readResolve method that checks for their known
 instances before calling this super method.ObjectStreamException - for object stream errorsCopyright © 2019 Eclipse Foundation.
Use is subject to license terms.