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

Method getTTL

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

Gets the next token from a tokenizer and parses it as a TTL. @return The next token in the stream, as an unsigned 32 bit integer. @throws TextParseException The input was not valid. @throws IOException An I/O error occurred. @see TTL

()

Source from the content-addressed store, hash-verified

470 * @see TTL
471 */
472public long
473getTTL() throws IOException {
474 String next = _getIdentifier("a TTL value");
475 try {
476 return TTL.parseTTL(next);
477 }
478 catch (NumberFormatException e) {
479 throw exception("expected a TTL value");
480 }
481}
482
483/**
484 * Gets the next token from a tokenizer and parses it as if it were a TTL.

Callers

nothing calls this directly

Calls 3

_getIdentifierMethod · 0.95
parseTTLMethod · 0.95
exceptionMethod · 0.95

Tested by

no test coverage detected