Gets the next token from a tokenizer and converts it to an unsigned 8 bit integer. @return The next token in the stream, as an unsigned 8 bit integer. @throws TextParseException The input was invalid or not an unsigned 8 bit integer. @throws IOException An I/O error occurred.
()
| 455 | * @throws IOException An I/O error occurred. |
| 456 | */ |
| 457 | public int |
| 458 | getUInt8() throws IOException { |
| 459 | long l = getLong(); |
| 460 | if (l < 0 || l > 0xFFL) |
| 461 | throw exception("expected an 8 bit unsigned integer"); |
| 462 | return (int) l; |
| 463 | } |
| 464 | |
| 465 | /** |
| 466 | * Gets the next token from a tokenizer and parses it as a TTL. |
no test coverage detected