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
()
| 470 | * @see TTL |
| 471 | */ |
| 472 | public long |
| 473 | getTTL() 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. |
nothing calls this directly
no test coverage detected