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 forAddress
and its subclasses.
-
-
Field Summary
Fields Modifier and Type Field Description static LenientAddressParser
DEFAULT
-
Constructor Summary
Constructors Modifier Constructor Description protected
LenientAddressParser(DecodeMonitor monitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Address
parseAddress(CharSequence text)
Parses the specified raw string into an address.Address
parseAddress(ByteSequence buf, ParserCursor cursor, BitSet delimiters)
AddressList
parseAddressList(CharSequence text)
Parse the address list string, such as the value of a From, To, Cc, Bcc, Sender, or Reply-To header.AddressList
parseAddressList(ByteSequence buf, ParserCursor cursor)
Group
parseGroup(CharSequence text)
Parses the specified raw string into a group address.Group
parseGroup(ByteSequence buf, ParserCursor cursor)
Mailbox
parseMailbox(CharSequence text)
Parses the specified raw string into a mailbox address.Mailbox
parseMailbox(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: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.
-
parseGroup
public Group parseGroup(ByteSequence buf, ParserCursor cursor)
-
parseGroup
public Group parseGroup(CharSequence text)
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
public Address parseAddress(ByteSequence buf, ParserCursor cursor, BitSet delimiters)
-
parseAddress
public Address parseAddress(CharSequence text)
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
public AddressList parseAddressList(ByteSequence buf, ParserCursor cursor)
-
parseAddressList
public AddressList parseAddressList(CharSequence text)
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.
-
-