private static enum ReadState.State extends java.lang.Enum<ReadState.State>
Enum Constant and Description |
---|
EOF
Won't read from the connection (terminal state).
|
READING
Reading from the connection.
|
SUSPENDED
Suspended, won't read from the connection until resumed.
|
SUSPENDING
Suspend has been requested but not yet taken effect.
|
Modifier and Type | Method and Description |
---|---|
static ReadState.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReadState.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadState.State READING
public static final ReadState.State SUSPENDING
public static final ReadState.State SUSPENDED
public static final ReadState.State EOF
public static ReadState.State[] values()
for (ReadState.State c : ReadState.State.values()) System.out.println(c);
public static ReadState.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null