MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / getAddress

Method getAddress

src/main/java/core/org/xbill/DNS/Tokenizer.java:552–561  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

550 * @see Address
551 */
552public InetAddress
553getAddress(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.

Callers

nothing calls this directly

Calls 3

_getIdentifierMethod · 0.95
getByAddressMethod · 0.95
exceptionMethod · 0.95

Tested by

no test coverage detected