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