Home
last modified time | relevance | path

Searched refs:hostAddr (Results 1 – 1 of 1) sorted by relevance

/external/guava/guava/src/com/google/common/net/
DInetAddresses.java520 public static InetAddress forUriString(String hostAddr) { in forUriString() argument
521 Preconditions.checkNotNull(hostAddr); in forUriString()
522 Preconditions.checkArgument(hostAddr.length() > 0, "host string is empty"); in forUriString()
527 retval = forString(hostAddr); in forUriString()
536 if (!(hostAddr.startsWith("[") && hostAddr.endsWith("]"))) { in forUriString()
537 throw new IllegalArgumentException("Not a valid address: \"" + hostAddr + '"'); in forUriString()
540 retval = forString(hostAddr.substring(1, hostAddr.length() - 1)); in forUriString()
545 throw new IllegalArgumentException("Not a valid address: \"" + hostAddr + '"'); in forUriString()