public class InetAddresses extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isInet4Address(String address)
Checks whether the given string represents an IPv4 address.
|
static boolean |
isInet6Address(String address)
Checks whether the given string represents an IPv6 address.
|
public static boolean isInet4Address(String address)
IllegalArgumentException - if string is null or emptypublic static boolean isInet6Address(String address)
IllegalArgumentException - if string is null or empty