public enum ProtocolDetectionState extends java.lang.Enum<ProtocolDetectionState>
枚举常量和说明 |
---|
DETECTED
Protocol was detected,
|
INVALID
The data was invalid.
|
NEEDS_MORE_DATA
Need more data to detect the protocol.
|
限定符和类型 | 方法和说明 |
---|---|
static ProtocolDetectionState |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static ProtocolDetectionState[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ProtocolDetectionState NEEDS_MORE_DATA
public static final ProtocolDetectionState INVALID
public static final ProtocolDetectionState DETECTED
public static ProtocolDetectionState[] values()
for (ProtocolDetectionState c : ProtocolDetectionState.values()) System.out.println(c);
public static ProtocolDetectionState valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量,
则抛出 IllegalArgumentExceptionjava.lang.NullPointerException
- 如果参数为空值, 则抛出 NullPointerException