@Test public void testShouldAcceptValidIPv61() { assertTrue("expected acceptance of \"1234:5678::\"", IPUtils.isValidIpv6String("1234:5678::")); }
public static boolean isValidIpv6String(String in) { IPv6 ip = new IPv6(in); try { ip.getBytes(); } catch (IPStringConversionException ex) { return false; } return true; }
IPUtils { public static boolean isValidIpv6String(String in) { IPv6 ip = new IPv6(in); try { ip.getBytes(); } catch (IPStringConversionException ex) { return false; } return true; } }
IPUtils { public static boolean isValidIpv6String(String in) { IPv6 ip = new IPv6(in); try { ip.getBytes(); } catch (IPStringConversionException ex) { return false; } return true; }  }
IPUtils { public static boolean isValidIpv6String(String in) { IPv6 ip = new IPv6(in); try { ip.getBytes(); } catch (IPStringConversionException ex) { return false; } return true; }  static boolean isValidIpv6String(String in); static final boolean isValidIpv4Subnet(String in); static boolean isValidIpv6Subnet(String in); static boolean isValidIpv4String(String in); static byte[] invBytes(byte[] mask); static byte[] opBytes(byte[] a1, byte[] a2, ByteStreamOperation bop); static byte[] rollMask(int mask, int addrSize); static boolean bytesEqual(byte[] a1, byte[] a2); }
IPUtils { public static boolean isValidIpv6String(String in) { IPv6 ip = new IPv6(in); try { ip.getBytes(); } catch (IPStringConversionException ex) { return false; } return true; }  static boolean isValidIpv6String(String in); static final boolean isValidIpv4Subnet(String in); static boolean isValidIpv6Subnet(String in); static boolean isValidIpv4String(String in); static byte[] invBytes(byte[] mask); static byte[] opBytes(byte[] a1, byte[] a2, ByteStreamOperation bop); static byte[] rollMask(int mask, int addrSize); static boolean bytesEqual(byte[] a1, byte[] a2);  }