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 intprivate static final BitSetprivate static final intprivate static final BitSetprivate static final intprivate static final BitSetprivate static final intprivate static final BitSetstatic final LenientAddressParserprivate final DecodeMonitorprivate static final intprivate final RawFieldParserprivate static final intprivate static final BitSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate MailboxcreateMailbox(String localPart) private MailboxcreateMailbox(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) StringparseDomain(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) MailboxparseMailboxAddress(String openingText, ByteSequence buf, ParserCursor cursor) parseMailboxes(ByteSequence buf, ParserCursor cursor, BitSet delimiters) (package private) DomainListparseRoute(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:AddressParserParses the specified raw string into a mailbox address.- Specified by:
parseMailboxin interfaceAddressParser- Parameters:
text- string to parse.- Returns:
- a
Mailboxobject for the specified string.
-
parseMailboxes
-
parseGroup
-
parseGroup
Description copied from interface:AddressParserParses the specified raw string into a group address.- Specified by:
parseGroupin interfaceAddressParser- Parameters:
text- string to parse.- Returns:
- a
Groupobject for the specified string.
-
parseAddress
-
parseAddress
Description copied from interface:AddressParserParses the specified raw string into an address.- Specified by:
parseAddressin interfaceAddressParser- Parameters:
text- string to parse.- Returns:
- an
Addressobject for the specified string.
-
parseAddressList
-
parseAddressList
Description copied from interface:AddressParserParse 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:
parseAddressListin interfaceAddressParser- Parameters:
text- string to parse.
-