Gets the next token from a tokenizer and converts it to a long. @return The next token in the stream, as a long. @throws TextParseException The input was invalid or not a long. @throws IOException An I/O error occurred.
()
| 403 | * @throws IOException An I/O error occurred. |
| 404 | */ |
| 405 | public long |
| 406 | getLong() throws IOException { |
| 407 | String next = _getIdentifier("an integer"); |
| 408 | if (!Character.isDigit(next.charAt(0))) |
| 409 | throw exception("expected an integer"); |
| 410 | try { |
| 411 | return Long.parseLong(next); |
| 412 | } catch (NumberFormatException e) { |
| 413 | throw exception("expected an integer"); |
| 414 | } |
| 415 | } |
| 416 | |
| 417 | /** |
| 418 | * Gets the next token from a tokenizer and converts it to an unsigned 32 bit |
no test coverage detected