public static enum SocksMessage.CmdType extends Enum<SocksMessage.CmdType>
Modifier and Type | Method and Description |
---|---|
static SocksMessage.CmdType |
fromByte(byte b) |
byte |
getByteValue() |
static SocksMessage.CmdType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocksMessage.CmdType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocksMessage.CmdType CONNECT
public static final SocksMessage.CmdType BIND
public static final SocksMessage.CmdType UDP
public static final SocksMessage.CmdType UNKNOWN
public static SocksMessage.CmdType[] values()
for (SocksMessage.CmdType c : SocksMessage.CmdType.values()) System.out.println(c);
public static SocksMessage.CmdType 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 nullpublic static SocksMessage.CmdType fromByte(byte b)
public byte getByteValue()
Copyright © 2008-2015 The Netty Project. All Rights Reserved.