public class LenientAddressParser extends Object implements AddressParser
Address
and its subclasses.Modifier and Type | Field and Description |
---|---|
static LenientAddressParser |
DEFAULT |
Modifier | Constructor and Description |
---|---|
protected |
LenientAddressParser(DecodeMonitor monitor) |
Modifier and Type | Method and Description |
---|---|
Address |
parseAddress(ByteSequence buf,
ParserCursor cursor,
BitSet delimiters) |
Address |
parseAddress(CharSequence text)
Parses the specified raw string into an address.
|
AddressList |
parseAddressList(ByteSequence buf,
ParserCursor cursor) |
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(ByteSequence buf,
ParserCursor cursor) |
Group |
parseGroup(CharSequence text)
Parses the specified raw string into a group address.
|
Mailbox |
parseMailbox(ByteSequence buf,
ParserCursor cursor,
BitSet delimiters) |
Mailbox |
parseMailbox(CharSequence text)
Parses the specified raw string into a mailbox address.
|
public static final LenientAddressParser DEFAULT
protected LenientAddressParser(DecodeMonitor monitor)
public Mailbox parseMailbox(ByteSequence buf, ParserCursor cursor, BitSet delimiters)
public Mailbox parseMailbox(CharSequence text)
AddressParser
parseMailbox
in interface AddressParser
text
- string to parse.Mailbox
object for the specified string.public Group parseGroup(ByteSequence buf, ParserCursor cursor)
public Group parseGroup(CharSequence text)
AddressParser
parseGroup
in interface AddressParser
text
- string to parse.Group
object for the specified string.public Address parseAddress(ByteSequence buf, ParserCursor cursor, BitSet delimiters)
public Address parseAddress(CharSequence text)
AddressParser
parseAddress
in interface AddressParser
text
- string to parse.Address
object for the specified string.public AddressList parseAddressList(ByteSequence buf, ParserCursor cursor)
public AddressList parseAddressList(CharSequence text)
AddressParser
parseAddressList
in interface AddressParser
text
- string to parse.Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.