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

Method getUInt16

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

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

()

Source from the content-addressed store, hash-verified

439 * @throws IOException An I/O error occurred.
440 */
441public int
442getUInt16() throws IOException {
443 long l = getLong();
444 if (l < 0 || l > 0xFFFFL)
445 throw exception("expected an 16 bit unsigned integer");
446 return (int) l;
447}
448
449/**
450 * Gets the next token from a tokenizer and converts it to an unsigned 8 bit

Callers 15

rdataFromStringMethod · 0.80
rdataFromStringMethod · 0.80
fromStringMethod · 0.80
rdataFromStringMethod · 0.80
rdataFromStringMethod · 0.80
rdataFromStringMethod · 0.80
rdataFromStringMethod · 0.80
parsePositionMethod · 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