public enum SocksCmdStatus extends java.lang.Enum<SocksCmdStatus>
枚举常量和说明 |
---|
ADDRESS_NOT_SUPPORTED |
COMMAND_NOT_SUPPORTED |
FAILURE |
FORBIDDEN |
HOST_UNREACHABLE |
NETWORK_UNREACHABLE |
REFUSED |
SUCCESS |
TTL_EXPIRED |
UNASSIGNED |
限定符和类型 | 方法和说明 |
---|---|
byte |
byteValue() |
static SocksCmdStatus |
fromByte(byte b)
已过时。
Use
valueOf(byte) instead. |
static SocksCmdStatus |
valueOf(byte b) |
static SocksCmdStatus |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static SocksCmdStatus[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final SocksCmdStatus SUCCESS
public static final SocksCmdStatus FAILURE
public static final SocksCmdStatus FORBIDDEN
public static final SocksCmdStatus NETWORK_UNREACHABLE
public static final SocksCmdStatus HOST_UNREACHABLE
public static final SocksCmdStatus REFUSED
public static final SocksCmdStatus TTL_EXPIRED
public static final SocksCmdStatus COMMAND_NOT_SUPPORTED
public static final SocksCmdStatus ADDRESS_NOT_SUPPORTED
public static final SocksCmdStatus UNASSIGNED
public static SocksCmdStatus[] values()
for (SocksCmdStatus c : SocksCmdStatus.values()) System.out.println(c);
public static SocksCmdStatus valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量,
则抛出 IllegalArgumentExceptionjava.lang.NullPointerException
- 如果参数为空值, 则抛出 NullPointerException@Deprecated public static SocksCmdStatus fromByte(byte b)
valueOf(byte)
instead.public static SocksCmdStatus valueOf(byte b)
public byte byteValue()