Class LenientAddressParser
java.lang.Object
org.apache.james.mime4j.field.address.LenientAddressParser
- All Implemented Interfaces:
AddressParser
Lenient (tolerant to non-critical format violations) builder for
Address
and its subclasses.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final BitSet
private static final int
private static final BitSet
private static final int
private static final BitSet
private static final int
private static final BitSet
static final LenientAddressParser
private final DecodeMonitor
private static final int
private final RawFieldParser
private static final int
private static final BitSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Mailbox
createMailbox
(String localPart) private Mailbox
createMailbox
(String name, DomainList route, String localPart, String domain) parseAddress
(CharSequence text) Parses the specified raw string into an address.parseAddress
(ByteSequence buf, ParserCursor cursor, BitSet delimiters) parseAddressList
(CharSequence text) Parse the address list string, such as the value of a From, To, Cc, Bcc, Sender, or Reply-To header.parseAddressList
(ByteSequence buf, ParserCursor cursor) (package private) String
parseDomain
(ByteSequence buf, ParserCursor cursor, BitSet delimiters) parseGroup
(CharSequence text) Parses the specified raw string into a group address.parseGroup
(ByteSequence buf, ParserCursor cursor) parseMailbox
(CharSequence text) Parses the specified raw string into a mailbox address.parseMailbox
(ByteSequence buf, ParserCursor cursor, BitSet delimiters) (package private) Mailbox
parseMailboxAddress
(String openingText, ByteSequence buf, ParserCursor cursor) parseMailboxes
(ByteSequence buf, ParserCursor cursor, BitSet delimiters) (package private) DomainList
parseRoute
(ByteSequence buf, ParserCursor cursor, BitSet delimiters)
-
Field Details
-
AT
private static final int AT- See Also:
-
OPENING_BRACKET
private static final int OPENING_BRACKET- See Also:
-
CLOSING_BRACKET
private static final int CLOSING_BRACKET- See Also:
-
COMMA
private static final int COMMA- See Also:
-
COLON
private static final int COLON- See Also:
-
SEMICOLON
private static final int SEMICOLON- See Also:
-
AT_AND_CLOSING_BRACKET
-
CLOSING_BRACKET_ONLY
-
COMMA_ONLY
-
COLON_ONLY
-
SEMICOLON_ONLY
-
DEFAULT
-
monitor
-
parser
-
-
Constructor Details
-
LenientAddressParser
-
-
Method Details
-
parseDomain
-
parseRoute
-
createMailbox
-
parseMailboxAddress
-
createMailbox
-
parseMailbox
-
parseMailbox
Description copied from interface:AddressParser
Parses the specified raw string into a mailbox address.- Specified by:
parseMailbox
in interfaceAddressParser
- Parameters:
text
- string to parse.- Returns:
- a
Mailbox
object for the specified string.
-
parseMailboxes
-
parseGroup
-
parseGroup
Description copied from interface:AddressParser
Parses the specified raw string into a group address.- Specified by:
parseGroup
in interfaceAddressParser
- Parameters:
text
- string to parse.- Returns:
- a
Group
object for the specified string.
-
parseAddress
-
parseAddress
Description copied from interface:AddressParser
Parses the specified raw string into an address.- Specified by:
parseAddress
in interfaceAddressParser
- Parameters:
text
- string to parse.- Returns:
- an
Address
object for the specified string.
-
parseAddressList
-
parseAddressList
Description copied from interface:AddressParser
Parse the address list string, such as the value of a From, To, Cc, Bcc, Sender, or Reply-To header. The string MUST be unfolded already.- Specified by:
parseAddressList
in interfaceAddressParser
- Parameters:
text
- string to parse.
-