Package org.apache.james.mime4j.stream
Enum RecursionMode
- All Implemented Interfaces:
Serializable
,Comparable<RecursionMode>
,java.lang.constant.Constable
Enumeration of parsing modes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDo not recursemessage/rfc822
parts and treat multiparts as a single flat body.Do not recursemessage/rfc822
partsParse into raw entitiesRecursively parse everymessage/rfc822
part -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RecursionMode
Returns the enum constant of this type with the specified name.static RecursionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
M_RECURSE
Recursively parse everymessage/rfc822
part -
M_NO_RECURSE
Do not recursemessage/rfc822
parts -
M_RAW
Parse into raw entities -
M_FLAT
Do not recursemessage/rfc822
parts and treat multiparts as a single flat body.
-
-
Constructor Details
-
RecursionMode
private RecursionMode()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-