Gets the next token from a tokenizer and converts it to an IP Address. @param family The address family. @return The next token in the stream, as an InetAddress @throws TextParseException The input was invalid or not a valid address. @throws IOException An I/O error occurred. @see Address
(int family)
| 550 | * @see Address |
| 551 | */ |
| 552 | public InetAddress |
| 553 | getAddress(int family) throws IOException { |
| 554 | String next = _getIdentifier("an address"); |
| 555 | try { |
| 556 | return Address.getByAddress(next, family); |
| 557 | } |
| 558 | catch (UnknownHostException e) { |
| 559 | throw exception(e.getMessage()); |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | /** |
| 564 | * Gets the next token from a tokenizer, which must be an EOL or EOF. |
nothing calls this directly
no test coverage detected