public class AddressBuilder
extends java.lang.Object
Address
and its subclasses.Modifier and Type | Field and Description |
---|---|
static AddressBuilder |
DEFAULT |
Modifier | Constructor and Description |
---|---|
protected |
AddressBuilder() |
Modifier and Type | Method and Description |
---|---|
Address |
parseAddress(java.lang.String rawAddressString) |
Address |
parseAddress(java.lang.String rawAddressString,
DecodeMonitor monitor)
Parses the specified raw string into an address.
|
AddressList |
parseAddressList(java.lang.String rawAddressList) |
AddressList |
parseAddressList(java.lang.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(java.lang.String rawGroupString) |
Group |
parseGroup(java.lang.String rawGroupString,
DecodeMonitor monitor)
Parses the specified raw string into a group address.
|
Mailbox |
parseMailbox(java.lang.String rawMailboxString) |
Mailbox |
parseMailbox(java.lang.String rawMailboxString,
DecodeMonitor monitor)
Parses the specified raw string into a mailbox address.
|
public static final AddressBuilder DEFAULT
public Address parseAddress(java.lang.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(java.lang.String rawAddressString) throws ParseException
ParseException
public AddressList parseAddressList(java.lang.String rawAddressList, DecodeMonitor monitor) throws ParseException
monitor
- the DecodeMonitor to be used while parsing/decodingParseException
public AddressList parseAddressList(java.lang.String rawAddressList) throws ParseException
ParseException
public Mailbox parseMailbox(java.lang.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(java.lang.String rawMailboxString) throws ParseException
ParseException
public Group parseGroup(java.lang.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(java.lang.String rawGroupString) throws ParseException
ParseException