Searched refs:isNumeric (Results 1 – 6 of 6) sorted by relevance
113 assertTrue(InetAddress.isNumeric("1.2.3.4")); in test_isNumeric()114 assertTrue(InetAddress.isNumeric("127.0.0.1")); in test_isNumeric()117 assertTrue(InetAddress.isNumeric("::1")); in test_isNumeric()118 assertTrue(InetAddress.isNumeric("2001:4860:800d::68")); in test_isNumeric()121 assertTrue(InetAddress.isNumeric("::ffff:127.0.0.1")); in test_isNumeric()124 assertTrue(InetAddress.isNumeric("[2001:4860:800d::68]")); in test_isNumeric()125 assertTrue(InetAddress.isNumeric("[::ffff:127.0.0.1]")); in test_isNumeric()128 assertFalse(InetAddress.isNumeric("example.com")); in test_isNumeric()131 assertTrue(InetAddress.isNumeric("0177.00.00.01")); // Interpreted as 177.0.0.1 in test_isNumeric()134 assertFalse(invalid, InetAddress.isNumeric(invalid)); in test_isNumeric()
51 return InetAddress.isNumeric(host) in verify()
104 if (a.equals(b) && (isFullyQualifiedDomainName(a, 0) || InetAddress.isNumeric(a))) { in domainMatches()
499 public static boolean isNumeric(String address) { in isNumeric() method in InetAddress
530 if (InetAddress.isNumeric(host)) { in isValidHost()
652 if (!InetAddress.isNumeric(ip)) { in ipStrToBytes()