Package org.jvnet.mimepull
Enum MIMEParser.STATE
- java.lang.Object
-
- java.lang.Enum<MIMEParser.STATE>
-
- org.jvnet.mimepull.MIMEParser.STATE
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MIMEParser.STATE>
- Enclosing class:
- MIMEParser
private static enum MIMEParser.STATE extends java.lang.Enum<MIMEParser.STATE>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BODY
END_MESSAGE
END_PART
HEADERS
SKIP_PREAMBLE
START_MESSAGE
START_PART
-
Constructor Summary
Constructors Modifier Constructor Description private
STATE()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MIMEParser.STATE
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MIMEParser.STATE[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
START_MESSAGE
public static final MIMEParser.STATE START_MESSAGE
-
SKIP_PREAMBLE
public static final MIMEParser.STATE SKIP_PREAMBLE
-
START_PART
public static final MIMEParser.STATE START_PART
-
HEADERS
public static final MIMEParser.STATE HEADERS
-
BODY
public static final MIMEParser.STATE BODY
-
END_PART
public static final MIMEParser.STATE END_PART
-
END_MESSAGE
public static final MIMEParser.STATE END_MESSAGE
-
-
Method Detail
-
values
public static MIMEParser.STATE[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MIMEParser.STATE c : MIMEParser.STATE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MIMEParser.STATE valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-