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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseAddress(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) 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)
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
LenientAddressParser
-
-
Method Details
-
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.
-
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.
-