Enum SocksMessage.ProtocolVersion
- java.lang.Object
-
- java.lang.Enum<SocksMessage.ProtocolVersion>
-
- org.jboss.netty.handler.codec.socks.SocksMessage.ProtocolVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SocksMessage.ProtocolVersion>
- Enclosing class:
- SocksMessage
public static enum SocksMessage.ProtocolVersion extends java.lang.Enum<SocksMessage.ProtocolVersion>
-
-
Field Summary
Fields Modifier and Type Field Description private byte
b
-
Constructor Summary
Constructors Modifier Constructor Description private
ProtocolVersion(byte b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SocksMessage.ProtocolVersion
fromByte(byte b)
byte
getByteValue()
static SocksMessage.ProtocolVersion
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
SOCKS4a
public static final SocksMessage.ProtocolVersion SOCKS4a
-
SOCKS5
public static final SocksMessage.ProtocolVersion SOCKS5
-
UNKNOWN
public static final SocksMessage.ProtocolVersion UNKNOWN
-
-
Method Detail
-
values
public static SocksMessage.ProtocolVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SocksMessage.ProtocolVersion c : SocksMessage.ProtocolVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SocksMessage.ProtocolVersion valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromByte
public static SocksMessage.ProtocolVersion fromByte(byte b)
-
getByteValue
public byte getByteValue()
-
-