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
()
| 488 | * @see TTL |
| 489 | */ |
| 490 | public long |
| 491 | getTTLLike() 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. |
no test coverage detected