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)
| 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. |
nothing calls this directly
no test coverage detected