@Test public void testInvalidIPv4Address() { Assert.assertFalse(InetAddressUtils.isIPv4Address(" 127.0.0.1 ")); Assert.assertFalse(InetAddressUtils.isIPv4Address("g.ar.ba.ge")); Assert.assertFalse(InetAddressUtils.isIPv4Address("192.168.0")); Assert.assertFalse(InetAddressUtils.isIPv4Address("256.255.255.255")); Assert.assertFalse(InetAddressUtils.isIPv4Address("0.168.0.0")); }
public static boolean isIPv4Address(final String input) { return IPV4_PATTERN.matcher(input).matches(); }
InetAddressUtils { public static boolean isIPv4Address(final String input) { return IPV4_PATTERN.matcher(input).matches(); } }
InetAddressUtils { public static boolean isIPv4Address(final String input) { return IPV4_PATTERN.matcher(input).matches(); } private  InetAddressUtils(); }
InetAddressUtils { public static boolean isIPv4Address(final String input) { return IPV4_PATTERN.matcher(input).matches(); } private  InetAddressUtils(); static boolean isIPv4Address(final String input); static boolean isIPv4MappedIPv64Address(final String input); static boolean isIPv6StdAddress(final String input); static boolean isIPv6HexCompressedAddress(final String input); static boolean isIPv6Address(final String input); static void formatAddress(
            final StringBuilder buffer,
            final SocketAddress socketAddress); static String getCanonicalLocalHostName(); }
InetAddressUtils { public static boolean isIPv4Address(final String input) { return IPV4_PATTERN.matcher(input).matches(); } private  InetAddressUtils(); static boolean isIPv4Address(final String input); static boolean isIPv4MappedIPv64Address(final String input); static boolean isIPv6StdAddress(final String input); static boolean isIPv6HexCompressedAddress(final String input); static boolean isIPv6Address(final String input); static void formatAddress(
            final StringBuilder buffer,
            final SocketAddress socketAddress); static String getCanonicalLocalHostName();  }