public interface AddressParser
| Modifier and Type | Method and Description |
|---|---|
Address |
parseAddress(CharSequence text)
Parses the specified raw string into an address.
|
AddressList |
parseAddressList(CharSequence text)
Parse the address list string, such as the value of a From, To, Cc, Bcc,
Sender, or Reply-To header.
|
Group |
parseGroup(CharSequence text)
Parses the specified raw string into a group address.
|
Mailbox |
parseMailbox(CharSequence text)
Parses the specified raw string into a mailbox address.
|
Address parseAddress(CharSequence text) throws ParseException
text - string to parse.Address object for the specified string.ParseException - if the raw string does not represent a single address.AddressList parseAddressList(CharSequence text) throws ParseException
text - string to parse.ParseExceptionMailbox parseMailbox(CharSequence text) throws ParseException
text - string to parse.Mailbox object for the specified string.ParseException - if the raw string does not represent a single mailbox
address.Group parseGroup(CharSequence text) throws ParseException
text - string to parse.Group object for the specified string.ParseException - if the raw string does not represent a single group address.Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.