Class NonBlockingUtf8JsonParserBase

All Implemented Interfaces:
Versioned, Closeable, AutoCloseable
Direct Known Subclasses:
NonBlockingByteBufferJsonParser, NonBlockingJsonParser

public abstract class NonBlockingUtf8JsonParserBase extends NonBlockingJsonParserBase
Non-blocking parser base implementation for JSON content.

NOTE: only supports parsing of UTF-8 encoded content (and 7-bit US-ASCII since it is strict subset of UTF-8): other encodings are not supported.

Since:
2.9
  • Method Details

    • needMoreInput

      public final boolean needMoreInput()
    • endOfInput

      public void endOfInput()
    • nextToken

      public JsonToken nextToken() throws IOException
      Description copied from class: JsonParser
      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.
      Specified by:
      nextToken in class ParserMinimalBase
      Returns:
      Next token from the stream, if any found, or null to indicate end-of-input
      Throws:
      IOException - for low-level read issues, or JsonParseException for decoding problems