JsonParser.@Deprecated public final class StajParser extends java.lang.Object implements java.util.Iterator<JsonStreamElement>
Iterator of JsonStreamElements.| Constructor and Description |
|---|
StajParser(java.io.Reader in)
Deprecated.
Replaced by
JsonParser.parseStreaming(Reader). |
StajParser(java.lang.String json)
Deprecated.
Replaced by
JsonParser.parseStreaming(Reader). |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Deprecated.
Determines whether there are any more elements.
|
JsonStreamElement |
next()
Deprecated.
Gets the next element in the stream.
|
void |
remove()
Deprecated.
Not supported.
|
public StajParser(java.io.Reader in)
JsonParser.parseStreaming(Reader).Reader.in - the Reader to convert into JsonStreamElements.public StajParser(java.lang.String json)
JsonParser.parseStreaming(Reader).String.json - the String to convert into JsonStreamElements.public boolean hasNext()
hasNext in interface java.util.Iterator<JsonStreamElement>InvalidSyntaxRuntimeException - if the next element could not be read, for example if the next element turns out not to be valid JSONJsonStreamException - if the underlying character stream failed.public JsonStreamElement next()
next in interface java.util.Iterator<JsonStreamElement>InvalidSyntaxRuntimeException - if the next element could not be read, for example if the next element turns out not to be valid JSONJsonStreamException - if the underlying character stream failed.java.util.NoSuchElementException - if there are no more elements to read.public void remove()
remove in interface java.util.Iterator<JsonStreamElement>