Gets the next token from a tokenizer and converts it to a string. @return The next token in the stream, as a string. @throws TextParseException The input was invalid or not a string. @throws IOException An I/O error occurred.
()
| 368 | * @throws IOException An I/O error occurred. |
| 369 | */ |
| 370 | public String |
| 371 | getString() throws IOException { |
| 372 | Token next = get(); |
| 373 | if (!next.isString()) { |
| 374 | throw exception("expected a string"); |
| 375 | } |
| 376 | return next.value; |
| 377 | } |
| 378 | |
| 379 | private String |
| 380 | _getIdentifier(String expected) throws IOException { |
no test coverage detected