public static enum NameResolver.JdkNameResolver extends Enum<NameResolver.JdkNameResolver> implements NameResolver
NameResolver.JdkNameResolver| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
resolve(String name) |
static NameResolver.JdkNameResolver |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NameResolver.JdkNameResolver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NameResolver.JdkNameResolver INSTANCE
public static NameResolver.JdkNameResolver[] values()
for (NameResolver.JdkNameResolver c : NameResolver.JdkNameResolver.values()) System.out.println(c);
public static NameResolver.JdkNameResolver 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 InetAddress resolve(String name) throws UnknownHostException
resolve in interface NameResolverUnknownHostExceptionCopyright © 2015. All Rights Reserved.