public final class NetworkUtils
extends Object
This class borrowed some of its methods from NetUtil class which was part of Netty.
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isValidIpV4Address(CharSequence ip)
Takes a string and parses it to see if it is a valid IPV4 address.
|
static boolean |
isValidIpV6Address(CharSequence ip)
Takes a string and parses it to see if it is a valid IPV6 address.
|
public static boolean isValidIpV4Address(CharSequence ip)
ip - the IP-address to validatepublic static boolean isValidIpV6Address(CharSequence ip)
ip - the IP-address to validate