Package oracle.dbtools.plugin.api.json
Interface JSONReader
- All Superinterfaces:
AutoCloseable
,Closeable
,Iterator<JSONToken>
Reads a stream of
JSONToken
instances from an underlying character
stream, using the Iterator
pattern.- Author:
- cdivilly
-
Method Summary
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Method Details
-
hasNext
Indicates if there any moreJSONToken
s in the stream.- Specified by:
hasNext
in interfaceIterator<JSONToken>
- Returns:
- true if there are more tokens, false if the end of the stream has been reached
- Throws:
JSONIOException
- if anIOException
is raised by the underlying stream
-
next
Returns the nextJSONToken
in the stream.- Specified by:
next
in interfaceIterator<JSONToken>
- Returns:
JSONToken
instance or null if the end of the stream has been reached.- Throws:
JSONIOException
- if anIOException
is raised by the underlying stream
-
remove
Deprecated.This operation is not supported onJSONReader
instances.- Specified by:
remove
in interfaceIterator<JSONToken>
- Throws:
IllegalStateException
- if this method is invoked
-