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

Method getAddressBytes

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

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)

Source from the content-addressed store, hash-verified

533 * @see Address
534 */
535public byte []
536getAddressBytes(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.

Callers 2

rdataFromStringMethod · 0.80
rdataFromStringMethod · 0.80

Calls 3

_getIdentifierMethod · 0.95
toByteArrayMethod · 0.95
exceptionMethod · 0.95

Tested by

no test coverage detected