Returns true if the current array or object has another element.
()
| 531 | |
| 532 | /** Returns true if the current array or object has another element. */ |
| 533 | public boolean hasNext() throws IOException { |
| 534 | int p = peeked; |
| 535 | if (p == PEEKED_NONE) { |
| 536 | p = doPeek(); |
| 537 | } |
| 538 | return p != PEEKED_END_OBJECT && p != PEEKED_END_ARRAY && p != PEEKED_EOF; |
| 539 | } |
| 540 | |
| 541 | /** Returns the type of the next token without consuming it. */ |
| 542 | public JsonToken peek() throws IOException { |