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

Method isInetAddress

output/java_guava/1.4.19/InetAddresses.java:165–167  ·  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

163
164
165 public static boolean isInetAddress(String ipString) {
166 return ipStringToBytes(ipString) != null;
167 }
168
169 private static byte[] ipStringToBytes(String ipString) {
170 // 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