|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.mime4j.field.address.AddressBuilder
public class AddressBuilder
Default (strict) builder for Address
and its subclasses.
Field Summary | |
---|---|
static AddressBuilder |
DEFAULT
|
Constructor Summary | |
---|---|
protected |
AddressBuilder()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final AddressBuilder DEFAULT
Constructor Detail |
---|
protected AddressBuilder()
Method Detail |
---|
public Address parseAddress(java.lang.String rawAddressString, DecodeMonitor monitor) throws ParseException
rawAddressString
- string to parse.monitor
- the DecodeMonitor to be used while parsing/decoding
Address
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/decoding
ParseException
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |