| Modifier and Type | Field and Description |
|---|---|
static AddressBuilder |
DEFAULT |
| Modifier | Constructor and Description |
|---|---|
protected |
AddressBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Address |
parseAddress(String rawAddressString) |
Address |
parseAddress(String rawAddressString,
DecodeMonitor monitor)
Parses the specified raw string into an address.
|
AddressList |
parseAddressList(String rawAddressList) |
AddressList |
parseAddressList(String rawAddressList,
DecodeMonitor monitor)
Parse the address list string, such as the value of a From, To, Cc, Bcc,
Sender, or Reply-To header.
|
Group |
parseGroup(String rawGroupString) |
Group |
parseGroup(String rawGroupString,
DecodeMonitor monitor)
Parses the specified raw string into a group address.
|
Mailbox |
parseMailbox(String rawMailboxString) |
Mailbox |
parseMailbox(String rawMailboxString,
DecodeMonitor monitor)
Parses the specified raw string into a mailbox address.
|
public static final AddressBuilder DEFAULT
public Address parseAddress(String rawAddressString, DecodeMonitor monitor) throws ParseException
rawAddressString - string to parse.monitor - the DecodeMonitor to be used while parsing/decodingAddress object for the specified string.ParseException - if the raw string does not represent a single address.public Address parseAddress(String rawAddressString) throws ParseException
ParseExceptionpublic AddressList parseAddressList(String rawAddressList, DecodeMonitor monitor) throws ParseException
monitor - the DecodeMonitor to be used while parsing/decodingParseExceptionpublic AddressList parseAddressList(String rawAddressList) throws ParseException
ParseExceptionpublic Mailbox parseMailbox(String rawMailboxString, DecodeMonitor monitor) throws ParseException
rawMailboxString - string to parse.monitor - the DecodeMonitor to be used while parsing/decoding.Mailbox object for the specified string.ParseException - if the raw string does not represent a single mailbox
address.public Mailbox parseMailbox(String rawMailboxString) throws ParseException
ParseExceptionpublic Group parseGroup(String rawGroupString, DecodeMonitor monitor) throws ParseException
rawGroupString - string to parse.Group object for the specified string.ParseException - if the raw string does not represent a single group address.public Group parseGroup(String rawGroupString) throws ParseException
ParseExceptionCopyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.