Constructor and Description |
---|
JavaResolver() |
Modifier and Type | Method and Description |
---|---|
@NonNull InetAddress |
getAddress(@NonNull String host)
Gets the InetAddress for the given host, resolving as necessary.
|
public @NonNull InetAddress getAddress(@NonNull String host) throws UnknownHostException
Resolver
getAddress
in interface Resolver
host
- host (IP or hostname)UnknownHostException
- if it can't be foundCopyright © 2013–2021 Kitteh. All rights reserved.