public class InetAddressUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean | isIPv4Address(String input)Checks whether the parameter is a valid IPv4 address |
static boolean | isIPv4MappedIPv64Address(String input)Checks whether the parameter is a valid IPv4-mapped IPv6 address. |
static boolean | isIPv6Address(String input)Checks whether the parameter is a valid IPv6 address (including compressed). |
static boolean | isIPv6HexCompressedAddress(String input)Checks whether the parameter is a valid compressed IPv6 address |
static boolean | isIPv6StdAddress(String input)Checks whether the parameter is a valid standard (non-compressed) IPv6 address |
public static boolean isIPv4Address(String input)
input - the address string to check for validitypublic static boolean isIPv4MappedIPv64Address(String input)
input - the address string to check for validitypublic static boolean isIPv6Address(String input)
input - the address string to check for validitypublic static boolean isIPv6HexCompressedAddress(String input)
input - the address string to check for validitypublic static boolean isIPv6StdAddress(String input)
input - the address string to check for validity