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