Interface JsonIterator

All Superinterfaces:
AutoCloseable, Closeable

public interface JsonIterator extends Closeable
  • Method Details

    • parse

      static JsonIterator parse(InputStream in, int bufSize)
    • parse

      static JsonIterator parse(InputStream in, int bufSize, int charBufferLength)
    • parse

      static JsonIterator parse(byte[] buf)
    • parse

      static JsonIterator parse(byte[] buf, int charBufferLength)
    • parse

      static JsonIterator parse(byte[] buf, int head, int tail)
    • parse

      static JsonIterator parse(byte[] buf, int head, int tail, int charBufferLength)
    • parse

      static JsonIterator parse(char[] buf)
    • parse

      static JsonIterator parse(char[] buf, int head, int tail)
    • parse

      static JsonIterator parse(String field)
    • parse

      static JsonIterator parse(String field, int charBufferLength)
    • fieldEquals

      static boolean fieldEquals(String field, char[] buf)
    • fieldEquals

      static boolean fieldEquals(String field, char[] buf, int len)
    • fieldEquals

      static boolean fieldEquals(String field, char[] buf, int offset, int len)
    • fieldStartsWith

      static boolean fieldStartsWith(String field, char[] buf, int offset, int len)
    • fieldEqualsIgnoreCase

      static boolean fieldEqualsIgnoreCase(String field, char[] buf)
    • fieldEqualsIgnoreCase

      static boolean fieldEqualsIgnoreCase(String field, char[] buf, int len)
    • fieldEqualsIgnoreCase

      static boolean fieldEqualsIgnoreCase(String field, char[] buf, int offset, int len)
    • fieldStartsWithIgnoreCase

      static boolean fieldStartsWithIgnoreCase(String field, char[] buf, int offset, int len)
    • fieldEndsWith

      static boolean fieldEndsWith(String field, char[] buf, int offset, int len)
    • fieldEndsWithIgnoreCase

      static boolean fieldEndsWithIgnoreCase(String field, char[] buf, int offset, int len)
    • reset

      JsonIterator reset(int mark)
    • reset

      JsonIterator reset(byte[] buf)
    • reset

      JsonIterator reset(byte[] buf, int head, int tail)
    • reset

      JsonIterator reset(char[] buf)
    • reset

      JsonIterator reset(char[] buf, int head, int tail)
    • reset

    • reset

      JsonIterator reset(InputStream in, int bufSize)
    • currentBuffer

      String currentBuffer()
    • supportsMarkReset

      boolean supportsMarkReset()
    • mark

      int mark()
    • whatIsNext

      ValueType whatIsNext()
    • readArray

      boolean readArray()
    • openArray

      JsonIterator openArray()
    • continueArray

      JsonIterator continueArray()
    • closeArray

      JsonIterator closeArray()
    • readObject

      default String readObject()
    • readObjField

      String readObjField()
    • skipObjField

      JsonIterator skipObjField()
    • skipUntil

      JsonIterator skipUntil(String field)
    • closeObj

      JsonIterator closeObj()
    • skip

      JsonIterator skip()
    • skipRestOfObject

      default JsonIterator skipRestOfObject()
    • skipRestOfArray

      default JsonIterator skipRestOfArray()
    • readNull

      boolean readNull()
      Advances the iterator if the next item is 'null' and returns true. Otherwise, stays in place and returns false.
      Returns:
      true if value was 'null'.
    • readString

      String readString()
    • decodeBase64String

      byte[] decodeBase64String()
    • readNumberAsString

      String readNumberAsString()
    • readNumberOrNumberString

      String readNumberOrNumberString()
    • readBoolean

      boolean readBoolean()
    • readShort

      short readShort()
    • readInt

      int readInt()
    • readLong

      long readLong()
    • readFloat

      float readFloat()
    • readDouble

      double readDouble()
    • readBigDecimal

      BigDecimal readBigDecimal()
    • readBigDecimalStripTrailingZeroes

      @Deprecated default BigDecimal readBigDecimalStripTrailingZeroes()
      Deprecated.
    • readBigDecimalDropZeroes

      BigDecimal readBigDecimalDropZeroes()
      Drops trailing decimal zeroes.
    • readUnscaledAsLong

      long readUnscaledAsLong(int scale)
    • readBigInteger

      BigInteger readBigInteger()
    • readDateTime

      Instant readDateTime()
      Parses ISO-like or RFC_1123_DATE_TIME formats such as: - YYYY*MM*DD*HH*MM*SS.?\d{0,9}Z? - YYYY*MM*DD*HH*MM*SS[+-]HH*MM - Tue, 3 Jun 2008 11:05:30 GMT

      Defaults to UTC if no offset is provided.

      Returns:
      the parsed Instant
      Throws:
      DateTimeException - - on any unexpected character or length
    • applyChars

      <R> R applyChars(CharBufferFunction<R> applyChars)
      Construct an Object of type R directly from the char[] representing the next String value.

      The function is not called for null values, instead null is directly returned.

      Type Parameters:
      R - Resulting Object Type.
      Parameters:
      applyChars - This array buffer is reused throughout the life of this iterator.
      Returns:
      Object constructed from applyChars.
    • applyChars

      <C, R> R applyChars(C context, ContextCharBufferFunction<C,R> applyChars)
    • applyNumberChars

      <R> R applyNumberChars(CharBufferFunction<R> applyChars)
    • applyNumberChars

      <C, R> R applyNumberChars(C context, ContextCharBufferFunction<C,R> applyChars)
    • applyCharsAsInt

      int applyCharsAsInt(CharBufferToIntFunction applyChars)
    • applyCharsAsInt

      <C> int applyCharsAsInt(C context, ContextCharBufferToIntFunction<C> applyChars)
    • applyNumberCharsAsInt

      int applyNumberCharsAsInt(CharBufferToIntFunction applyChars)
    • applyNumberCharsAsInt

      <C> int applyNumberCharsAsInt(C context, ContextCharBufferToIntFunction<C> applyChars)
    • applyCharsAsLong

      long applyCharsAsLong(CharBufferToLongFunction applyChars)
    • applyCharsAsLong

      <C> long applyCharsAsLong(C context, ContextCharBufferToLongFunction<C> applyChars)
    • applyNumberCharsAsLong

      long applyNumberCharsAsLong(CharBufferToLongFunction applyChars)
    • applyNumberCharsAsLong

      <C> long applyNumberCharsAsLong(C context, ContextCharBufferToLongFunction<C> applyChars)
    • testChars

      boolean testChars(CharBufferPredicate testChars)
    • testChars

      <C> boolean testChars(C context, ContextCharBufferPredicate<C> testChars)
    • consumeChars

      void consumeChars(CharBufferConsumer testChars)
    • consumeChars

      <C> void consumeChars(C context, ContextCharBufferConsumer<C> testChars)
    • testObjField

      boolean testObjField(CharBufferPredicate testField)
    • applyObjField

      <R> R applyObjField(CharBufferFunction<R> applyChars)
    • applyObject

      <C, R> R applyObject(C context, ContextFieldBufferFunction<C,R> fieldBufferFunction)
    • applyObjFieldAsInt

      int applyObjFieldAsInt(CharBufferToIntFunction applyChars, int terminalSentinel)
    • applyObjFieldAsLong

      long applyObjFieldAsLong(CharBufferToLongFunction applyChars, long terminalSentinel)
    • applyObjFieldAsInt

      <C> int applyObjFieldAsInt(C context, ContextCharBufferToIntFunction<C> applyChars, int terminalSentinel)
    • applyObjFieldAsLong

      <C> long applyObjFieldAsLong(C context, ContextCharBufferToLongFunction<C> applyChars, long terminalSentinel)
    • applyObject

      <R> R applyObject(FieldBufferFunction<R> fieldBufferFunction)
    • testObject

      <C> C testObject(C context, ContextFieldBufferPredicate<C> fieldBufferFunction)
    • testObject

      void testObject(FieldBufferPredicate fieldBufferFunction)
    • testObject

      <C> C testObject(C context, ContextFieldBufferMaskedPredicate<C> fieldBufferFunction)