public final class NetUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getHostName(String _ipAddress)
Get the host name of a local address, if available.
|
static boolean |
isIPv4Address(String _ipAddress)
Checks if given String is an IPv4 address.
|
static boolean |
isIPv4orIPv6Address(String _ipAddress)
Checks if given String is either a valid IPv4 or IPv6 address.
|
static boolean |
isIPv6Address(String _ipAddress)
Checks if given String is an IPv6 address.
|
public static String getHostName(String _ipAddress)
_ipAddress - the IP addresspublic static boolean isIPv4Address(String _ipAddress)
_ipAddress - public static boolean isIPv6Address(String _ipAddress)
_ipAddress - public static boolean isIPv4orIPv6Address(String _ipAddress)
_ipAddress - Copyright © 2018. All rights reserved.