Gets the next token from a tokenizer and converts it to an unsigned 16 bit integer. @return The next token in the stream, as an unsigned 16 bit integer. @throws TextParseException The input was invalid or not an unsigned 16 bit integer. @throws IOException An I/O error occurred.
()
| 439 | * @throws IOException An I/O error occurred. |
| 440 | */ |
| 441 | public int |
| 442 | getUInt16() throws IOException { |
| 443 | long l = getLong(); |
| 444 | if (l < 0 || l > 0xFFFFL) |
| 445 | throw exception("expected an 16 bit unsigned integer"); |
| 446 | return (int) l; |
| 447 | } |
| 448 | |
| 449 | /** |
| 450 | * Gets the next token from a tokenizer and converts it to an unsigned 8 bit |
no test coverage detected