Class LenientAddressParser
- java.lang.Object
-
- org.apache.james.mime4j.field.address.LenientAddressParser
-
- All Implemented Interfaces:
AddressParser
public class LenientAddressParser extends Object implements AddressParser
Lenient (tolerant to non-critical format violations) builder forAddressand its subclasses.
-
-
Field Summary
Fields Modifier and Type Field Description static LenientAddressParserDEFAULT
-
Constructor Summary
Constructors Modifier Constructor Description protectedLenientAddressParser(DecodeMonitor monitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressparseAddress(CharSequence text)Parses the specified raw string into an address.AddressparseAddress(ByteSequence buf, ParserCursor cursor, BitSet delimiters)AddressListparseAddressList(CharSequence text)Parse the address list string, such as the value of a From, To, Cc, Bcc, Sender, or Reply-To header.AddressListparseAddressList(ByteSequence buf, ParserCursor cursor)GroupparseGroup(CharSequence text)Parses the specified raw string into a group address.GroupparseGroup(ByteSequence buf, ParserCursor cursor)MailboxparseMailbox(CharSequence text)Parses the specified raw string into a mailbox address.MailboxparseMailbox(ByteSequence buf, ParserCursor cursor, BitSet delimiters)
-
-
-
Field Detail
-
DEFAULT
public static final LenientAddressParser DEFAULT
-
-
Constructor Detail
-
LenientAddressParser
protected LenientAddressParser(DecodeMonitor monitor)
-
-
Method Detail
-
parseMailbox
public Mailbox parseMailbox(ByteSequence buf, ParserCursor cursor, BitSet delimiters)
-
parseMailbox
public Mailbox parseMailbox(CharSequence text)
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
public Group parseGroup(ByteSequence buf, ParserCursor cursor)
-
parseGroup
public Group parseGroup(CharSequence text)
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
public Address parseAddress(ByteSequence buf, ParserCursor cursor, BitSet delimiters)
-
parseAddress
public Address parseAddress(CharSequence text)
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
public AddressList parseAddressList(ByteSequence buf, ParserCursor cursor)
-
parseAddressList
public AddressList parseAddressList(CharSequence text)
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.
-
-