Searched refs:ipString (Results 1 – 2 of 2) sorted by relevance
148 public static InetAddress forString(String ipString) { in forString() argument149 byte[] addr = ipStringToBytes(ipString); in forString()154 String.format("'%s' is not an IP string literal.", ipString)); in forString()167 public static boolean isInetAddress(String ipString) { in isInetAddress() argument168 return ipStringToBytes(ipString) != null; in isInetAddress()171 private static byte[] ipStringToBytes(String ipString) { in ipStringToBytes() argument175 for (int i = 0; i < ipString.length(); i++) { in ipStringToBytes()176 char c = ipString.charAt(i); in ipStringToBytes()192 ipString = convertDottedQuadToHex(ipString); in ipStringToBytes()193 if (ipString == null) { in ipStringToBytes()[all …]
166 for (String ipString : ipStrings) { in testConvertDottedQuadToHex()168 InetAddress ipv6Addr = InetAddress.getByName(ipString); in testConvertDottedQuadToHex()169 assertEquals(ipv6Addr, InetAddresses.forString(ipString)); in testConvertDottedQuadToHex()170 assertTrue(InetAddresses.isInetAddress(ipString)); in testConvertDottedQuadToHex()