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

Method getUInt8

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

Gets the next token from a tokenizer and converts it to an unsigned 8 bit integer. @return The next token in the stream, as an unsigned 8 bit integer. @throws TextParseException The input was invalid or not an unsigned 8 bit integer. @throws IOException An I/O error occurred.

()

Source from the content-addressed store, hash-verified

455 * @throws IOException An I/O error occurred.
456 */
457public int
458getUInt8() throws IOException {
459 long l = getLong();
460 if (l < 0 || l > 0xFFL)
461 throw exception("expected an 8 bit unsigned integer");
462 return (int) l;
463}
464
465/**
466 * Gets the next token from a tokenizer and parses it as a TTL.

Callers 12

rdataFromStringMethod · 0.80
rdataFromStringMethod · 0.80
rdataFromStringMethod · 0.80
rdataFromStringMethod · 0.80
rdataFromStringMethod · 0.80
rdataFromStringMethod · 0.80
rdataFromStringMethod · 0.80
rdataFromStringMethod · 0.80
rdataFromStringMethod · 0.80
rdataFromStringMethod · 0.80
rdataFromStringMethod · 0.80
rdataFromStringMethod · 0.80

Calls 2

getLongMethod · 0.95
exceptionMethod · 0.95

Tested by

no test coverage detected