Package org.apache.james.mime4j.stream
Enum EntityState
- All Implemented Interfaces:
Serializable
,Comparable<EntityState>
,java.lang.constant.Constable
Enumeration of states an entity is expected to go through
in the process of the MIME stream parsing.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis token indicates, that an atomic entity is being parsed.This token indicates, that the MIME stream is currently at the end of a body part.This token indicates, that part headers have now been parsed.This token indicates, that the MIME stream is currently at the end of a message.This token indicates, that a multipart body has been parsed.This token indicates, that the MIME stream has been completely and successfully parsed, and no more data is available.This token indicates, that a multiparts epilogue is being parsed.This token indicates, that a message parts field has now been parsed.This token indicates, that a multiparts preamble is being parsed.This token indicates, that a raw entity is currently being processed.This token indicates, that the MIME stream is currently at the beginning of a body part.This token indicates, that a message parts headers are now being parsed.This token indicates, that the MIME stream is currently at the beginning of a message.This token indicates, that a multipart body is being parsed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityState
Returns the enum constant of this type with the specified name.static EntityState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
T_START_MESSAGE
This token indicates, that the MIME stream is currently at the beginning of a message. -
T_END_MESSAGE
This token indicates, that the MIME stream is currently at the end of a message. -
T_RAW_ENTITY
This token indicates, that a raw entity is currently being processed. -
T_START_HEADER
This token indicates, that a message parts headers are now being parsed. -
T_FIELD
This token indicates, that a message parts field has now been parsed. -
T_END_HEADER
This token indicates, that part headers have now been parsed. -
T_START_MULTIPART
This token indicates, that a multipart body is being parsed. -
T_END_MULTIPART
This token indicates, that a multipart body has been parsed. -
T_PREAMBLE
This token indicates, that a multiparts preamble is being parsed. -
T_EPILOGUE
This token indicates, that a multiparts epilogue is being parsed. -
T_START_BODYPART
This token indicates, that the MIME stream is currently at the beginning of a body part. -
T_END_BODYPART
This token indicates, that the MIME stream is currently at the end of a body part. -
T_BODY
This token indicates, that an atomic entity is being parsed. -
T_END_OF_STREAM
This token indicates, that the MIME stream has been completely and successfully parsed, and no more data is available.
-
-
Constructor Details
-
EntityState
private EntityState()
-
-
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
-