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

Method getLong

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

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

()

Source from the content-addressed store, hash-verified

403 * @throws IOException An I/O error occurred.
404 */
405public long
406getLong() throws IOException {
407 String next = _getIdentifier("an integer");
408 if (!Character.isDigit(next.charAt(0)))
409 throw exception("expected an integer");
410 try {
411 return Long.parseLong(next);
412 } catch (NumberFormatException e) {
413 throw exception("expected an integer");
414 }
415}
416
417/**
418 * Gets the next token from a tokenizer and converts it to an unsigned 32 bit

Callers 9

getUInt32Method · 0.95
getUInt16Method · 0.95
getUInt8Method · 0.95
checkDelimiterMethod · 0.80
parseMethod · 0.80
parseMethod · 0.80
toLongMethod · 0.80
checkDelimiterMethod · 0.80

Calls 2

_getIdentifierMethod · 0.95
exceptionMethod · 0.95

Tested by

no test coverage detected