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