MCPcopy Create free account
hub / github.com/antlr/codebuff / isInetAddress

Method isInetAddress

output/java_guava/1.4.16/InetAddresses.java:164–166  ·  view source on GitHub ↗

Returns true if the supplied string is a valid IP string literal, false otherwise. @param ipString String to evaluated as an IP string literal @return true if the argument is a valid IP string literal

(String ipString)

Source from the content-addressed store, hash-verified

162
163
164 public static boolean isInetAddress(String ipString) {
165 return ipStringToBytes(ipString) != null;
166 }
167
168 private static byte[] ipStringToBytes(String ipString) {
169 // Make a first pass to categorize the characters in this string.

Callers

nothing calls this directly

Calls 1

ipStringToBytesMethod · 0.95

Tested by

no test coverage detected