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