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