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 moreJSONTokens in the stream.- Specified by:
hasNextin interfaceIterator<JSONToken>- Returns:
- true if there are more tokens, false if the end of the stream has been reached
- Throws:
JSONIOException- if anIOExceptionis raised by the underlying stream
-
next
Returns the nextJSONTokenin the stream.- Specified by:
nextin interfaceIterator<JSONToken>- Returns:
JSONTokeninstance or null if the end of the stream has been reached.- Throws:
JSONIOException- if anIOExceptionis raised by the underlying stream
-
remove
Deprecated.This operation is not supported onJSONReaderinstances.- Specified by:
removein interfaceIterator<JSONToken>- Throws:
IllegalStateException- if this method is invoked
-