public enum SocksCmdType extends Enum<SocksCmdType>
Modifier and Type | Method and Description |
---|---|
byte |
byteValue() |
static SocksCmdType |
fromByte(byte b)
Deprecated.
Use
valueOf(byte) instead. |
static SocksCmdType |
valueOf(byte b) |
static SocksCmdType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocksCmdType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocksCmdType CONNECT
public static final SocksCmdType BIND
public static final SocksCmdType UDP
public static final SocksCmdType UNKNOWN
public static SocksCmdType[] values()
for (SocksCmdType c : SocksCmdType.values()) System.out.println(c);
public static SocksCmdType 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 null@Deprecated public static SocksCmdType fromByte(byte b)
valueOf(byte)
instead.public static SocksCmdType valueOf(byte b)
public byte byteValue()
Copyright © 2008–2017 The Netty Project. All rights reserved.