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

Method getTTLLike

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

Gets the next token from a tokenizer and parses it as if it were 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

488 * @see TTL
489 */
490public long
491getTTLLike() throws IOException {
492 String next = _getIdentifier("a TTL-like value");
493 try {
494 return TTL.parse(next, false);
495 }
496 catch (NumberFormatException e) {
497 throw exception("expected a TTL-like value");
498 }
499}
500
501/**
502 * Gets the next token from a tokenizer and converts it to a name.

Callers 1

rdataFromStringMethod · 0.80

Calls 3

_getIdentifierMethod · 0.95
parseMethod · 0.95
exceptionMethod · 0.95

Tested by

no test coverage detected