| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class | JsonParserImpl.
A parser implementation that feeds from a list of tokens instead of bytes. |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private List | |
| private String | |
| private long | |
| private boolean | |
| private boolean | |
| private Handler | |
| private Handler | |
| private Handler | |
| private boolean | |
| private final NonBlockingJsonParser | |
| private final Deque | |
| private final ReadStream | |
| private Handler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public JsonParser | arrayEventMode()
Implements io. Flip the parser to emit a stream of events for each new json array. |
| public JsonParser | arrayValueMode()
Implements io. Flip the parser to emit a single value event for each new json array. |
| private void | |
| private void | |
| private void | |
| public void | end()
Implements io. End the stream, this must be called after all the json stream has been processed. |
| public JsonParser | |
| public JsonParser | exceptionHandler(Handler<Throwable> handler)
Implements io.
|
| public JsonParser | fetch(long amount)
Implements io. Fetch the specified |
| private void | handle(IOException
the event to handle ioe)Implements io. Something has happened, so handle it. |
| public void | handle(Buffer
the event to handle data)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Something has happened, so handle it. |
| private void | |
| public JsonParser | |
| public JsonParser | objectEventMode()
Implements io. Flip the parser to emit a stream of events for each new json object. |
| public JsonParser | objectValueMode()
Implements io. Flip the parser to emit a single value event for each new json object. |
| public JsonParser | pause()
Implements io. Pause the |
| public JsonParser | resume()
Implements io. Resume reading, and sets the buffer in |
| public JsonParser | write(Buffer buffer)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Handle a |
| arrayValueMode | back to summary |
|---|---|
| private boolean arrayValueMode | |
| collectedExceptions | back to summary |
|---|---|
| private List<IOException> collectedExceptions | |
| currentField | back to summary |
|---|---|
| private String currentField | |
| demand | back to summary |
|---|---|
| private long demand | |
| emitting | back to summary |
|---|---|
| private boolean emitting | |
| ended | back to summary |
|---|---|
| private boolean ended | |
| endHandler | back to summary |
|---|---|
| private Handler<Void> endHandler | |
| eventHandler | back to summary |
|---|---|
| private Handler<JsonEvent> eventHandler | |
| exceptionHandler | back to summary |
|---|---|
| private Handler<Throwable> exceptionHandler | |
| objectValueMode | back to summary |
|---|---|
| private boolean objectValueMode | |
| parser | back to summary |
|---|---|
| private final NonBlockingJsonParser parser | |
| pending | back to summary |
|---|---|
| private final Deque<JsonEventImpl> pending | |
| stream | back to summary |
|---|---|
| private final ReadStream<Buffer> stream | |
| tokenHandler | back to summary |
|---|---|
| private Handler<JsonEventImpl> tokenHandler | |
| JsonParserImpl | back to summary |
|---|---|
| public JsonParserImpl(ReadStream<Buffer> stream) | |
| arrayEventMode | back to summary |
|---|---|
| public JsonParser arrayEventMode() Implements io. Doc from io. Flip the parser to emit a stream of events for each new json array.
| |
| arrayValueMode | back to summary |
|---|---|
| public JsonParser arrayValueMode() Implements io. Doc from io. Flip the parser to emit a single value event for each new json array. Json array currently streamed won't be affected.
| |
| checkExceptions | back to summary |
|---|---|
| private void checkExceptions() | |
| checkPending | back to summary |
|---|---|
| private void checkPending() | |
| checkTokens | back to summary |
|---|---|
| private void checkTokens() | |
| end | back to summary |
|---|---|
| public void end() Implements io. Doc from io. End the stream, this must be called after all the json stream has been processed.
| |
| endHandler | back to summary |
|---|---|
| public JsonParser endHandler(Handler<Void> handler) Implements io.
| |
| exceptionHandler | back to summary |
|---|---|
| public JsonParser exceptionHandler(Handler<Throwable> handler) Implements io.
| |
| fetch | back to summary |
|---|---|
| public JsonParser fetch(long amount) Implements io. Doc from io. Fetch the specified
| |
| handle | back to summary |
|---|---|
| private void handle(IOException ioe) Implements io. Doc from io. Something has happened, so handle it.
| |
| handle | back to summary |
|---|---|
| public void handle(Buffer data) Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Something has happened, so handle it. | |
| handleEvent | back to summary |
|---|---|
| private void handleEvent(JsonEventImpl event) | |
| handler | back to summary |
|---|---|
| public JsonParser handler(Handler<JsonEvent> handler) Implements io.
| |
| objectEventMode | back to summary |
|---|---|
| public JsonParser objectEventMode() Implements io. Doc from io. Flip the parser to emit a stream of events for each new json object.
| |
| objectValueMode | back to summary |
|---|---|
| public JsonParser objectValueMode() Implements io. Doc from io. Flip the parser to emit a single value event for each new json object. Json object currently streamed won't be affected.
| |
| pause | back to summary |
|---|---|
| public JsonParser pause() Implements io. Doc from io. Pause the
While it's paused, no data will be sent to the data
| |
| resume | back to summary |
|---|---|
| public JsonParser resume() Implements io. Doc from io. Resume reading, and sets the buffer in
If the
| |
| write | back to summary |
|---|---|
| public JsonParser write(Buffer buffer) Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Handle a
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv JsonParserImpl. | |
| pack-priv int | |
| pack-priv Handler |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv <T> T | |
| public void | handle(JsonEventImpl
the event to handle event)Implements io. Something has happened, so handle it. |
| buffer | back to summary |
|---|---|
| pack-priv JsonParserImpl. | |
| depth | back to summary |
|---|---|
| pack-priv int depth | |
| handler | back to summary |
|---|---|
| pack-priv Handler<Void> handler | |
| BufferingHandler | back to summary |
|---|---|
| private BufferingHandler() | |
| convert | back to summary |
|---|---|
| pack-priv <T> T convert(Class<T> type) | |
| handle | back to summary |
|---|---|
| public void handle(JsonEventImpl event) Implements io. Doc from io. Something has happened, so handle it.
| |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private ArrayDeque |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public ObjectCodec | getCodec()
Implements abstract com. Accessor for |
| public String | getText()
Implements abstract com. Method for accessing textual representation of the current token;
if no current token (before first call to |
| public char[] | getTextCharacters()
Implements abstract com. Method similar to |
| public int | getTextLength()
Implements abstract com. Accessor used with |
| public int | getTextOffset()
Implements abstract com. Accessor used with |
| public JsonToken | nextToken()
Implements abstract com. Main iteration method, which will advance stream enough to determine type of the next token, if any. |
| public void | setCodec(ObjectCodec
Codec to assign, if any; c)null if noneImplements abstract com. Setter that allows defining |
| text | back to summary |
|---|---|
| private String text | |
| tokens | back to summary |
|---|---|
| private ArrayDeque<Object> tokens | |
| TokenParser | back to summary |
|---|---|
| private TokenParser(IOContext ctxt, int features) | |
| _closeInput | back to summary |
|---|---|
| protected void _closeInput() Implements abstract com.
| |
| getCodec | back to summary |
|---|---|
| public ObjectCodec getCodec() Implements abstract com. Doc from com. Accessor for
| |
| getText | back to summary |
|---|---|
| public String getText() Implements abstract com. Doc from com. Method for accessing textual representation of the current token;
if no current token (before first call to
| |
| getTextCharacters | back to summary |
|---|---|
| public char[] getTextCharacters() Implements abstract com. Doc from com. Method similar to
Note that caller MUST NOT modify the returned character array in any way -- doing so may corrupt current parser state and render parser instance useless.
The only reason to call this method (over
| |
| getTextLength | back to summary |
|---|---|
| public int getTextLength() Implements abstract com. Doc from com. Accessor used with
| |
| getTextOffset | back to summary |
|---|---|
| public int getTextOffset() Implements abstract com. Doc from com. Accessor used with
| |
| nextToken | back to summary |
|---|---|
| public JsonToken nextToken() throws IOException Implements abstract com. Doc from com. Main iteration method, which will advance stream enough to determine type of the next token, if any. If none remaining (stream has no content other than possible white space before ending), null will be returned.
| |
| setCodec | back to summary |
|---|---|
| public void setCodec(ObjectCodec c) Implements abstract com. Doc from com. Setter that allows defining
| |