public class InetAddressUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static void | formatAddress(StringBuilder buffer,
             SocketAddress socketAddress)Formats  SocketAddressas text. | 
| static String | getCanonicalLocalHostName()Returns canonical name (fully qualified domain name) of the localhost. | 
| static boolean | isIPv4Address(String input)Checks whether the parameter is a valid IPv4 address | 
| static boolean | isIPv4MappedIPv64Address(String input) | 
| 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 void formatAddress(StringBuilder buffer, SocketAddress socketAddress)
SocketAddress as text.public static String getCanonicalLocalHostName()
public static boolean isIPv4Address(String input)
input - the address string to check for validitypublic static boolean isIPv4MappedIPv64Address(String input)
public 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