- All Superinterfaces:
AutoCloseable,Closeable
-
Method Summary
Modifier and TypeMethodDescription<C,R> R applyChars(C context, ContextCharBufferFunction<C, R> applyChars) <R> RapplyChars(CharBufferFunction<R> applyChars) Construct an Object of type R directly from the char[] representing the next String value.<C> intapplyCharsAsInt(C context, ContextCharBufferToIntFunction<C> applyChars) intapplyCharsAsInt(CharBufferToIntFunction applyChars) <C> longapplyCharsAsLong(C context, ContextCharBufferToLongFunction<C> applyChars) longapplyCharsAsLong(CharBufferToLongFunction applyChars) <C,R> R applyNumberChars(C context, ContextCharBufferFunction<C, R> applyChars) <R> RapplyNumberChars(CharBufferFunction<R> applyChars) <C> intapplyNumberCharsAsInt(C context, ContextCharBufferToIntFunction<C> applyChars) intapplyNumberCharsAsInt(CharBufferToIntFunction applyChars) <C> longapplyNumberCharsAsLong(C context, ContextCharBufferToLongFunction<C> applyChars) longapplyNumberCharsAsLong(CharBufferToLongFunction applyChars) <C,R> R applyObject(C context, ContextFieldBufferFunction<C, R> fieldBufferFunction) <R> RapplyObject(FieldBufferFunction<R> fieldBufferFunction) <R> RapplyObjField(CharBufferFunction<R> applyChars) <C> intapplyObjFieldAsInt(C context, ContextCharBufferToIntFunction<C> applyChars, int terminalSentinel) intapplyObjFieldAsInt(CharBufferToIntFunction applyChars, int terminalSentinel) <C> longapplyObjFieldAsLong(C context, ContextCharBufferToLongFunction<C> applyChars, long terminalSentinel) longapplyObjFieldAsLong(CharBufferToLongFunction applyChars, long terminalSentinel) closeObj()<C> voidconsumeChars(C context, ContextCharBufferConsumer<C> testChars) voidconsumeChars(CharBufferConsumer testChars) byte[]static booleanfieldEndsWith(String field, char[] buf, int offset, int len) static booleanfieldEndsWithIgnoreCase(String field, char[] buf, int offset, int len) static booleanfieldEquals(String field, char[] buf) static booleanfieldEquals(String field, char[] buf, int len) static booleanfieldEquals(String field, char[] buf, int offset, int len) static booleanfieldEqualsIgnoreCase(String field, char[] buf) static booleanfieldEqualsIgnoreCase(String field, char[] buf, int len) static booleanfieldEqualsIgnoreCase(String field, char[] buf, int offset, int len) static booleanfieldStartsWith(String field, char[] buf, int offset, int len) static booleanfieldStartsWithIgnoreCase(String field, char[] buf, int offset, int len) intmark()static JsonIteratorparse(byte[] buf) static JsonIteratorparse(byte[] buf, int charBufferLength) static JsonIteratorparse(byte[] buf, int head, int tail) static JsonIteratorparse(byte[] buf, int head, int tail, int charBufferLength) static JsonIteratorparse(char[] buf) static JsonIteratorparse(char[] buf, int head, int tail) static JsonIteratorparse(InputStream in, int bufSize) static JsonIteratorparse(InputStream in, int bufSize, int charBufferLength) static JsonIteratorstatic JsonIteratorbooleanDrops trailing decimal zeroes.default BigDecimalDeprecated.booleanParses 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 GMTdoublefloatintreadInt()longreadLong()booleanreadNull()Advances the iterator if the next item is 'null' and returns true.default StringshortlongreadUnscaledAsLong(int scale) reset(byte[] buf) reset(byte[] buf, int head, int tail) reset(char[] buf) reset(char[] buf, int head, int tail) reset(int mark) reset(InputStream in) reset(InputStream in, int bufSize) skip()default JsonIteratordefault JsonIteratorboolean<C> booleantestChars(C context, ContextCharBufferPredicate<C> testChars) booleantestChars(CharBufferPredicate testChars) <C> CtestObject(C context, ContextFieldBufferMaskedPredicate<C> fieldBufferFunction) <C> CtestObject(C context, ContextFieldBufferPredicate<C> fieldBufferFunction) voidtestObject(FieldBufferPredicate fieldBufferFunction) booleantestObjField(CharBufferPredicate testField)
-
Method Details
-
parse
-
parse
-
parse
-
parse
-
parse
-
parse
-
parse
-
parse
-
parse
-
parse
-
fieldEquals
-
fieldEquals
-
fieldEquals
-
fieldStartsWith
-
fieldEqualsIgnoreCase
-
fieldEqualsIgnoreCase
-
fieldEqualsIgnoreCase
-
fieldStartsWithIgnoreCase
-
fieldEndsWith
-
fieldEndsWithIgnoreCase
-
reset
-
reset
-
reset
-
reset
-
reset
-
reset
-
reset
-
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
-
readObjField
String readObjField() -
skipObjField
JsonIterator skipObjField() -
skipUntil
-
closeObj
JsonIterator closeObj() -
skip
JsonIterator skip() -
skipRestOfObject
-
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. -
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 GMTDefaults to UTC if no offset is provided.
- Returns:
- the parsed Instant
- Throws:
DateTimeException- - on any unexpected character or length
-
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
-
applyNumberChars
-
applyNumberChars
-
applyCharsAsInt
-
applyCharsAsInt
-
applyNumberCharsAsInt
-
applyNumberCharsAsInt
-
applyCharsAsLong
-
applyCharsAsLong
-
applyNumberCharsAsLong
-
applyNumberCharsAsLong
-
testChars
-
testChars
-
consumeChars
-
consumeChars
-
testObjField
-
applyObjField
-
applyObject
-
applyObjFieldAsInt
-
applyObjFieldAsLong
-
applyObjFieldAsInt
<C> int applyObjFieldAsInt(C context, ContextCharBufferToIntFunction<C> applyChars, int terminalSentinel) -
applyObjFieldAsLong
<C> long applyObjFieldAsLong(C context, ContextCharBufferToLongFunction<C> applyChars, long terminalSentinel) -
applyObject
-
testObject
-
testObject
-
testObject
-