Gets the next token from a tokenizer and converts it to a byte array containing an IP address. @param family The address family. @return The next token in the stream, as an byte array representing an IP address. @throws TextParseException The input was invalid or not a valid address. @throws IOExcep
(int family)
| 533 | * @see Address |
| 534 | */ |
| 535 | public byte [] |
| 536 | getAddressBytes(int family) throws IOException { |
| 537 | String next = _getIdentifier("an address"); |
| 538 | byte [] bytes = Address.toByteArray(next, family); |
| 539 | if (bytes == null) |
| 540 | throw exception("Invalid address: " + next); |
| 541 | return bytes; |
| 542 | } |
| 543 | |
| 544 | /** |
| 545 | * Gets the next token from a tokenizer and converts it to an IP Address. |
no test coverage detected