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