Class NonBlockingByteArrayParser

java.lang.Object
tools.jackson.core.JsonParser
tools.jackson.core.base.ParserMinimalBase
All Implemented Interfaces:
Closeable, AutoCloseable, tools.jackson.core.async.ByteArrayFeeder, tools.jackson.core.async.NonBlockingInputFeeder, tools.jackson.core.Versioned

public class NonBlockingByteArrayParser extends NonBlockingParserBase implements tools.jackson.core.async.ByteArrayFeeder
  • Field Details

    • _inputBuffer

      protected byte[] _inputBuffer
      This buffer is actually provided via NonBlockingInputFeeder
    • _origBufferLen

      protected int _origBufferLen
      In addition to current buffer pointer, and end pointer, we will also need to know number of bytes originally contained. This is needed to correctly update location information when the block has been completed.
  • Constructor Details

    • NonBlockingByteArrayParser

      public NonBlockingByteArrayParser(tools.jackson.core.ObjectReadContext readCtxt, tools.jackson.core.io.IOContext ioCtxt, int parserFeatures, int smileFeatures, tools.jackson.core.sym.ByteQuadsCanonicalizer sym)
  • Method Details

    • nonBlockingInputFeeder

      public tools.jackson.core.async.ByteArrayFeeder nonBlockingInputFeeder()
      Overrides:
      nonBlockingInputFeeder in class tools.jackson.core.JsonParser
    • needMoreInput

      public final boolean needMoreInput()
      Specified by:
      needMoreInput in interface tools.jackson.core.async.NonBlockingInputFeeder
    • feedInput

      public void feedInput(byte[] buf, int start, int end) throws tools.jackson.core.JacksonException
      Specified by:
      feedInput in interface tools.jackson.core.async.ByteArrayFeeder
      Throws:
      tools.jackson.core.JacksonException
    • endOfInput

      public void endOfInput()
      Specified by:
      endOfInput in interface tools.jackson.core.async.NonBlockingInputFeeder
    • releaseBuffered

      public int releaseBuffered(OutputStream out) throws tools.jackson.core.JacksonException
      Specified by:
      releaseBuffered in class NonBlockingParserBase
      Throws:
      tools.jackson.core.JacksonException
    • nextToken

      public tools.jackson.core.JsonToken nextToken() throws tools.jackson.core.JacksonException
      Specified by:
      nextToken in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • _finishToken

      protected final tools.jackson.core.JsonToken _finishToken() throws tools.jackson.core.JacksonException
      Method called when a (scalar) value type has been detected, but not all of contents have been decoded due to incomplete input available.
      Throws:
      tools.jackson.core.JacksonException
    • _finishHeader

      protected tools.jackson.core.JsonToken _finishHeader(int state) throws tools.jackson.core.JacksonException
      Helper method that will decode information from a header block that has been detected.
      Throws:
      tools.jackson.core.JacksonException
    • _startFieldName

      protected final tools.jackson.core.JsonToken _startFieldName(int ch) throws tools.jackson.core.JacksonException
      Method that handles initial token type recognition for token that has to be either PROPERTY_NAME or END_OBJECT.
      Throws:
      tools.jackson.core.JacksonException
    • _startLongUnicode

      protected final tools.jackson.core.JsonToken _startLongUnicode() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _startFloat

      protected final tools.jackson.core.JsonToken _startFloat() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _finishFloat

      protected final tools.jackson.core.JsonToken _finishFloat(int value, int bytesRead) throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _startDouble

      protected final tools.jackson.core.JsonToken _startDouble() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _finishDouble

      protected final tools.jackson.core.JsonToken _finishDouble(long value, int bytesRead) throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _startRawBinary

      protected final tools.jackson.core.JsonToken _startRawBinary() throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException
    • _decode7BitEncodedTail

      protected final boolean _decode7BitEncodedTail(int bytesToDecode, int buffered) throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException