Consumes the next token from the JSON stream and asserts that it is the end of the current array. @throws IllegalStateException if the next token is not the end of an array.
()
| 476 | * @throws IllegalStateException if the next token is not the end of an array. |
| 477 | */ |
| 478 | public void endArray() throws IOException { |
| 479 | int p = peeked; |
| 480 | if (p == PEEKED_NONE) { |
| 481 | p = doPeek(); |
| 482 | } |
| 483 | if (p == PEEKED_END_ARRAY) { |
| 484 | stackSize--; |
| 485 | pathIndices[stackSize - 1]++; |
| 486 | peeked = PEEKED_NONE; |
| 487 | } else { |
| 488 | throw unexpectedTokenError("END_ARRAY"); |
| 489 | } |
| 490 | } |
| 491 | |
| 492 | /** |
| 493 | * Consumes the next token from the JSON stream and asserts that it is the beginning of a new |