| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Indicates if there any more
JSONTokens in the stream. |
JSONToken |
next()
Returns the next
JSONToken in the stream. |
void |
remove()
Deprecated.
|
forEachRemainingboolean hasNext()
throws JSONIOException
JSONTokens in the stream.hasNext in interface Iterator<JSONToken>JSONIOException - if an IOException is raised by the underlying streamJSONToken next() throws JSONIOException
JSONToken in the stream.next in interface Iterator<JSONToken>JSONToken instance or null if the end of the stream has been reached.JSONIOException - if an IOException is raised by the underlying stream@Deprecated void remove() throws IllegalStateException
JSONReader instances.remove in interface Iterator<JSONToken>IllegalStateException - if this method is invoked