All Packages This Package Class Hierarchy Class Search Index
Class grendel.storage.addressparser.RFC822Mailbox
java.lang.Object | +----grendel.storage.addressparser.RFC822Mailbox
Stores a RFC822 mailbox. Defined as being either a
addr-spec (local-part@domain), or a route-addr
preceeded by a phrase (phrase <local-part@domain>).
Mere humans tends to consider this a name and an
address. In the first addr-spec form, the name is usually
within a RFC822 comment preceeding the addr-spec.
If there is no comment, a mailbox name may be null.
Normally used only as a data type returned by the RFC822MailboxList
class.
See Also: RFC822MailboxList
public class RFC822Mailbox extends java.lang.Object { // Fields 2 private String address; private String name; // Constructors 1 public RFC822Mailbox(String, String); // Methods 3 public String getAddress(); public String getMailboxString(); public String getName(); }
Fields
name
private String name
address
private String address
Constructors
RFC822Mailbox
public RFC822Mailbox(String name, String address)
Should be created only by the RFC822MailboxList class.
See Also: RFC822MailboxList
Methods
getName
public String getName()
getAddress
public String getAddress()
getMailboxString
public String getMailboxString()
Creates a valid RFC822 mailbox. Since we don't like to lose the comment information, this will reform addresses like:
(Eric Bina) ebina@netscape.com
to addresses like:
"Eric Bina" <ebina@netscape.com>
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4