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 |
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 String |
type
The type of recipient, usually the name of a corresponding
Internet standard header.
|
Modifier | Constructor and Description |
---|---|
protected |
Message.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 Message.RecipientType(String type)
protected Object readResolve() throws ObjectStreamException
readResolve
method that checks for their known
instances before calling this super method.ObjectStreamException
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.