Searched refs:parseNumericAddress (Results 1 – 3 of 3) sorted by relevance
80 assertEquals("/1.2.3.4", InetAddress.parseNumericAddress("1.2.3.4").toString()); in test_parseNumericAddress()82 …assertEquals("/2001:4860:800d::68", InetAddress.parseNumericAddress("2001:4860:800d::68").toString… in test_parseNumericAddress()84 assertEquals("/127.0.0.1", InetAddress.parseNumericAddress("::ffff:127.0.0.1").toString()); in test_parseNumericAddress()86 …assertEquals("/2001:4860:800d::68", InetAddress.parseNumericAddress("[2001:4860:800d::68]").toStri… in test_parseNumericAddress()87 … assertEquals("/127.0.0.1", InetAddress.parseNumericAddress("[::ffff:127.0.0.1]").toString()); in test_parseNumericAddress()90 InetAddress.parseNumericAddress("example.com"); // Not numeric. in test_parseNumericAddress()96 assertEquals("/177.0.0.1", InetAddress.parseNumericAddress("0177.00.00.01").toString()); in test_parseNumericAddress()100 InetAddress.parseNumericAddress(invalid); in test_parseNumericAddress()107 assertTrue(InetAddress.parseNumericAddress(null).isLoopbackAddress()); in test_parseNumericAddress()108 assertTrue(InetAddress.parseNumericAddress("").isLoopbackAddress()); in test_parseNumericAddress()
512 public static InetAddress parseNumericAddress(String numericAddress) { in parseNumericAddress() method in InetAddress
559 InetAddress ia = InetAddress.parseNumericAddress(host); in isValidHost()