public enum MessageState extends Enum<MessageState>
Enum Constant and Description |
---|
BODY
The body is being processed.
|
END
The end line is being processed.
|
HEADERS
The header lines are being processed.
|
IDLE
No message being processed.
|
START
The start line is being processed.
|
Modifier and Type | Method and Description |
---|---|
static MessageState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageState BODY
public static final MessageState END
public static final MessageState HEADERS
public static final MessageState IDLE
public static final MessageState START
public static MessageState[] values()
for (MessageState c : MessageState.values()) System.out.println(c);
public static MessageState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2005–2015. All rights reserved.