final class JSONReaderJSONB extends JSONReader
JSONReader.AutoTypeBeforeHandler, JSONReader.BigIntegerCreator, JSONReader.Context, JSONReader.Feature, JSONReader.ResolveTask, JSONReader.SavePoint| Modifier and Type | Field and Description |
|---|---|
(package private) static long |
BASE |
(package private) byte[] |
bytes |
(package private) JSONFactory.CacheItem |
cacheItem |
(package private) char[] |
charBuf |
(package private) int |
end |
(package private) static byte[] |
FIXED_TYPE_SIZE |
(package private) static java.nio.charset.Charset |
GB18030 |
(package private) int |
length |
(package private) static byte[] |
SHANGHAI_ZONE_ID_NAME_BYTES |
(package private) int |
strBegin |
(package private) int |
strlen |
(package private) byte |
strtype |
(package private) int |
symbol0Begin |
(package private) long |
symbol0Hash |
(package private) int |
symbol0Length |
(package private) byte |
symbol0StrType |
(package private) long[] |
symbols |
(package private) SymbolTable |
symbolTable |
(package private) byte |
type |
(package private) byte[] |
valueBytes |
boolValue, ch, CHAR1_ESCAPED, comma, complex, context, doubleChars, EOI, exponent, INT_VALUE_END, JSON_TYPE_ARRAY, JSON_TYPE_BIG_DEC, JSON_TYPE_BOOL, JSON_TYPE_DEC, JSON_TYPE_DOUBLE, JSON_TYPE_FLOAT, JSON_TYPE_INT, JSON_TYPE_INT16, JSON_TYPE_INT64, JSON_TYPE_INT8, JSON_TYPE_NaN, JSON_TYPE_NULL, JSON_TYPE_OBJECT, JSON_TYPE_STRING, jsonb, level, mag0, mag1, mag2, mag3, MASK_ALLOW_UN_QUOTED_FIELD_NAMES, MASK_DISABLE_REFERENCE_DETECT, MASK_DISABLE_SINGLE_QUOTE, MASK_EMPTY_STRING_AS_NULL, MASK_ERROR_ON_NONE_SERIALIZABLE, MASK_FIELD_BASED, MASK_IGNORE_NONE_SERIALIZABLE, MASK_INIT_STRING_FIELD_AS_EMPTY, MASK_SUPPORT_ARRAY_TO_BEAN, MASK_SUPPORT_AUTO_TYPE, MASK_SUPPORT_SMART_MATCH, MASK_TRIM_STRING, MAX_EXP, MAX_NUMBER_DIGITS, nameBegin, nameEscape, negative, offset, resolveTasks, scale, SPACE, stringValue, typeRedirect, utf8, valueEscape, valueType, wasNull| Constructor and Description |
|---|
JSONReaderJSONB(JSONReader.Context ctx,
byte[] bytes,
int off,
int length) |
JSONReaderJSONB(JSONReader.Context ctx,
java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
autoTypeError() |
(package private) static int |
check3(int off,
int end) |
(package private) static int |
check7(int off,
int end) |
ObjectReader |
checkAutoType(java.lang.Class expectClass,
long expectClassHash,
long features)
Checks the auto type for the specified class and hash, considering additional features.
|
(package private) ObjectReader |
checkAutoTypeWithHandler(java.lang.Class expectClass,
long features,
JSONReader.AutoTypeBeforeHandler autoTypeBeforeHandler,
long typeHash) |
(package private) static void |
checkBigintLen(int len,
int offset,
int end) |
void |
close() |
java.lang.String |
error(byte type) |
java.lang.String |
getFieldName()
Gets the current field name in a JSON object.
|
private static int |
getInt3(byte[] bytes,
int offset,
int type) |
private static int |
getIntByte(byte[] bytes,
int offset,
int type) |
private static int |
getLong3(byte[] bytes,
int offset,
int type) |
private static int |
getLongByte(byte[] bytes,
int offset,
int type) |
(package private) long |
getNameHashCode() |
long |
getNameHashCodeLCase()
Reads the hash code of the current field name in lowercase.
|
private ObjectReader |
getObjectReaderContext(ObjectReader autoTypeObjectReader,
java.lang.Class objectClass,
java.lang.ClassLoader contextClassLoader) |
int |
getRawInt()
Gets the raw integer value from the current position in the JSON data.
|
long |
getRawLong()
Gets the raw long value from the current position in the JSON data.
|
java.lang.String |
getString()
Gets the current string value from the JSON data.
|
protected int |
getStringLength()
Gets the length of the current string value in the JSON data.
|
byte |
getType()
Gets the type of the current JSON value.
|
boolean |
isArray()
Checks if the current character represents the start of a JSON array.
|
boolean |
isBinary()
Checks if the current value represents binary data.
|
boolean |
isDate()
Checks if the current value represents a date.
|
boolean |
isEnd()
Checks if the reader has reached the end of the input.
|
boolean |
isInt()
Checks if the current character represents the start of an integer value.
|
boolean |
isNull()
Checks if the current JSON value is null.
|
boolean |
isNumber()
Checks if the current character represents the start of a JSON number.
|
boolean |
isObject()
Checks if the current character represents the start of a JSON object.
|
boolean |
isReference()
Checks if the current value represents a reference.
|
boolean |
isString()
Checks if the current character represents the start of a JSON string.
|
JSONReader.SavePoint |
mark() |
void |
next()
Advances the reader to the next character in the JSON data.
|
boolean |
nextIfArrayEnd()
Checks if the current character is the end of a JSON array (']') and advances the reader if it is.
|
boolean |
nextIfArrayStart()
Checks if the current character is the start of a JSON array ('[') and advances the reader if it is.
|
boolean |
nextIfComma()
Checks if the current character is a comma (',') and advances the reader if it is.
|
boolean |
nextIfInfinity()
Checks if the current value represents infinity and advances the reader if it is.
|
boolean |
nextIfMatch(byte type)
Checks if the next value matches the specified type and advances the reader if it does.
|
boolean |
nextIfMatch(char ch)
Checks if the current character matches the specified character and advances the reader if it does.
|
boolean |
nextIfMatchIdent(char c0,
char c1) |
boolean |
nextIfMatchIdent(char c0,
char c1,
char c2) |
boolean |
nextIfMatchIdent(char c0,
char c1,
char c2,
char c3) |
boolean |
nextIfMatchIdent(char c0,
char c1,
char c2,
char c3,
char c4) |
boolean |
nextIfMatchIdent(char c0,
char c1,
char c2,
char c3,
char c4,
char c5) |
boolean |
nextIfMatchTypedAny()
Checks if the next value matches any type and advances the reader if it does.
|
boolean |
nextIfName4Match10(long name1)
Checks if the next field name matches a 10-character pattern.
|
boolean |
nextIfName4Match11(long name1)
Checks if the next field name matches an 11-character pattern.
|
boolean |
nextIfName4Match12(long name1,
byte name2)
Checks if the next field name matches a 12-character pattern.
|
boolean |
nextIfName4Match13(long name1,
int name2)
Checks if the next field name matches a 13-character pattern.
|
boolean |
nextIfName4Match14(long name1,
int name2)
Checks if the next field name matches a 14-character pattern.
|
boolean |
nextIfName4Match15(long name1,
int name2)
Checks if the next field name matches a 15-character pattern.
|
boolean |
nextIfName4Match16(long name1,
int name2,
byte name3)
Checks if the next field name matches a 16-character pattern.
|
boolean |
nextIfName4Match17(long name1,
long name2)
Checks if the next field name matches a 17-character pattern.
|
boolean |
nextIfName4Match18(long name1,
long name2)
Checks if the next field name matches an 18-character pattern.
|
boolean |
nextIfName4Match19(long name1,
long name2)
Checks if the next field name matches a 19-character pattern.
|
boolean |
nextIfName4Match2()
Checks if the next field name matches a 2-character pattern.
|
boolean |
nextIfName4Match20(long name1,
long name2,
byte name3)
Checks if the next field name matches a 20-character pattern.
|
boolean |
nextIfName4Match21(long name1,
long name2,
int name3)
Checks if the next field name matches a 21-character pattern.
|
boolean |
nextIfName4Match22(long name1,
long name2,
int name3)
Checks if the next field name matches a 22-character pattern.
|
boolean |
nextIfName4Match23(long name1,
long name2,
int name3)
Checks if the next field name matches a 23-character pattern.
|
boolean |
nextIfName4Match24(long name1,
long name2,
int name3,
byte name4)
Checks if the next field name matches a 24-character pattern.
|
boolean |
nextIfName4Match25(long name1,
long name2,
long name3)
Checks if the next field name matches a 25-character pattern.
|
boolean |
nextIfName4Match26(long name1,
long name2,
long name3)
Checks if the next field name matches a 26-character pattern.
|
boolean |
nextIfName4Match27(long name1,
long name2,
long name3)
Checks if the next field name matches a 27-character pattern.
|
boolean |
nextIfName4Match28(long name1,
long name2,
long name3,
byte name4)
Checks if the next field name matches a 28-character pattern.
|
boolean |
nextIfName4Match29(long name1,
long name2,
long name3,
int name4)
Checks if the next field name matches a 29-character pattern.
|
boolean |
nextIfName4Match3()
Checks if the next field name matches a 3-character pattern.
|
boolean |
nextIfName4Match30(long name1,
long name2,
long name3,
int name4)
Checks if the next field name matches a 30-character pattern.
|
boolean |
nextIfName4Match31(long name1,
long name2,
long name3,
int name4)
Checks if the next field name matches a 31-character pattern.
|
boolean |
nextIfName4Match32(long name1,
long name2,
long name3,
int name4,
byte name5)
Checks if the next field name matches a 32-character pattern.
|
boolean |
nextIfName4Match33(long name1,
long name2,
long name3,
long name4)
Checks if the next field name matches a 33-character pattern.
|
boolean |
nextIfName4Match34(long name1,
long name2,
long name3,
long name4)
Checks if the next field name matches a 34-character pattern.
|
boolean |
nextIfName4Match35(long name1,
long name2,
long name3,
long name4)
Checks if the next field name matches a 35-character pattern.
|
boolean |
nextIfName4Match36(long name1,
long name2,
long name3,
long name4,
byte name5)
Checks if the next field name matches a 36-character pattern.
|
boolean |
nextIfName4Match37(long name1,
long name2,
long name3,
long name4,
int name5)
Checks if the next field name matches a 37-character pattern.
|
boolean |
nextIfName4Match38(long name1,
long name2,
long name3,
long name4,
int name5)
Checks if the next field name matches a 38-character pattern.
|
boolean |
nextIfName4Match39(long name1,
long name2,
long name3,
long name4,
int name5)
Checks if the next field name matches a 39-character pattern.
|
boolean |
nextIfName4Match4(byte name1)
Checks if the next field name matches a 4-character pattern.
|
boolean |
nextIfName4Match40(long name1,
long name2,
long name3,
long name4,
int name5,
byte name6)
Checks if the next field name matches a 40-character pattern.
|
boolean |
nextIfName4Match41(long name1,
long name2,
long name3,
long name4,
long name5)
Checks if the next field name matches a 41-character pattern.
|
boolean |
nextIfName4Match42(long name1,
long name2,
long name3,
long name4,
long name5)
Checks if the next field name matches a 42-character pattern.
|
boolean |
nextIfName4Match43(long name1,
long name2,
long name3,
long name4,
long name5)
Checks if the next field name matches a 43-character pattern.
|
boolean |
nextIfName4Match5(int name1)
Checks if the next field name matches a 5-character pattern.
|
boolean |
nextIfName4Match6(int name1)
Checks if the next field name matches a 6-character pattern.
|
boolean |
nextIfName4Match7(int name1)
Checks if the next field name matches a 7-character pattern.
|
boolean |
nextIfName4Match8(int name1,
byte name2)
Checks if the next field name matches an 8-character pattern.
|
boolean |
nextIfName4Match9(long name1)
Checks if the next field name matches a 9-character pattern.
|
boolean |
nextIfNull()
Checks if the current JSON value is null and advances the reader if it is.
|
boolean |
nextIfNullOrEmptyString()
Checks if the current value is a null or empty string and advances the reader if it is.
|
boolean |
nextIfObjectEnd()
Checks if the current character is the end of a JSON object ('}') and advances the reader if it is.
|
boolean |
nextIfObjectStart()
Checks if the current character is the start of a JSON object ('{') and advances the reader if it is.
|
boolean |
nextIfSet()
Checks if the current value represents a Set and advances the reader if it is.
|
(package private) JSONException |
notSupportString() |
(package private) static JSONException |
notSupportType(byte type) |
(package private) static JSONException |
outOfBoundsCheckFromToIndex(int offset,
int end) |
<T> T |
read(java.lang.Class<T> type) |
void |
read(java.util.Map map,
long features)
Reads JSON data into a Map with specified features.
|
<T> T |
read(java.lang.reflect.Type type) |
java.lang.Object |
readAny()
Reads any JSON value and returns it as an Object.
|
(package private) java.lang.Object |
readAnyObject() |
java.util.List |
readArray()
Reads a JSON array and returns it as a List.
|
void |
readArray(java.util.Collection list,
java.lang.reflect.Type itemType) |
java.util.List |
readArray(java.lang.reflect.Type itemType)
Reads a JSON array with elements of a specified type.
|
java.math.BigDecimal |
readBigDecimal()
Reads a BigDecimal value from JSON data.
|
java.math.BigInteger |
readBigInteger()
Reads a BigInteger value from JSON data.
|
private java.math.BigInteger |
readBigInteger0(byte type) |
byte[] |
readBinary()
Reads binary data from JSON data.
|
java.lang.Boolean |
readBool()
Reads a boolean value from JSON data.
|
boolean |
readBoolValue()
Reads a boolean value from JSON data.
|
private boolean |
readBoolValue0(byte type) |
char |
readCharValue()
Reads a character value from JSON data.
|
java.util.Date |
readDate()
Reads a Date value from JSON data.
|
private java.math.BigDecimal |
readDecimal0(byte type) |
double |
readDoubleValue()
Reads a double value from JSON data.
|
private double |
readDoubleValue0() |
java.lang.String |
readFieldName()
Reads the current field name in a JSON object.
|
long |
readFieldNameHashCode()
Reads the hash code of the current field name in a JSON object.
|
(package private) JSONException |
readFieldNameHashCodeError() |
long |
readFieldNameHashCodeUnquote()
Reads the hash code of the current field name in a JSON object without requiring quotes.
|
(package private) java.lang.String |
readFixedAsciiString(int strlen) |
java.lang.Float |
readFloat()
Reads a Float object from JSON data.
|
private float |
readFloat0() |
float |
readFloatValue()
Reads a float value from JSON data.
|
private void |
readGB18030() |
byte[] |
readHex()
Reads a hexadecimal string from JSON data and converts it to a byte array.
|
boolean |
readIfNull()
Checks if the current JSON value is null and advances the reader if it is.
|
java.time.Instant |
readInstant()
Reads an Instant value from JSON data.
|
java.lang.Integer |
readInt32()
Reads an Integer object from JSON data.
|
int |
readInt32Value()
Reads a 32-bit integer value from JSON data.
|
private int |
readInt32Value0(byte[] bytes,
byte type) |
int[] |
readInt32ValueArray()
Reads an array of 32-bit integer values from JSON data.
|
(package private) JSONException |
readInt32ValueError(byte type) |
java.lang.Long |
readInt64()
Reads a Long object from JSON data.
|
long |
readInt64Value()
Reads a 64-bit long value from JSON data.
|
private long |
readInt64Value0(byte[] bytes,
byte type) |
long[] |
readInt64ValueArray()
Reads an array of 64-bit long values from JSON data.
|
(package private) JSONException |
readInt64ValueError(byte type) |
int |
readLength() |
java.util.List |
readList(java.lang.reflect.Type[] types)
Reads a JSON array with elements of specified types.
|
java.time.LocalDate |
readLocalDate()
Reads a LocalDate value from JSON data.
|
private java.time.LocalDate |
readLocalDate0(int type) |
protected java.time.LocalDate |
readLocalDate10() |
protected java.time.LocalDate |
readLocalDate11() |
java.time.LocalDate |
readLocalDate8() |
java.time.LocalDate |
readLocalDate9() |
java.time.LocalDateTime |
readLocalDateTime()
Reads a LocalDateTime value from JSON data.
|
private java.time.LocalDateTime |
readLocalDateTime0(int type) |
protected java.time.LocalDateTime |
readLocalDateTime12() |
protected java.time.LocalDateTime |
readLocalDateTime14() |
protected java.time.LocalDateTime |
readLocalDateTime16() |
protected java.time.LocalDateTime |
readLocalDateTime17() |
protected java.time.LocalDateTime |
readLocalDateTime18() |
protected java.time.LocalDateTime |
readLocalDateTime19() |
protected java.time.LocalDateTime |
readLocalDateTime20() |
protected java.time.LocalDateTime |
readLocalDateTimeX(int len) |
java.time.LocalTime |
readLocalTime()
Reads a LocalTime value from JSON data.
|
protected java.time.LocalTime |
readLocalTime10() |
protected java.time.LocalTime |
readLocalTime11() |
protected java.time.LocalTime |
readLocalTime12() |
protected java.time.LocalTime |
readLocalTime15() |
protected java.time.LocalTime |
readLocalTime18() |
protected java.time.LocalTime |
readLocalTime5() |
protected java.time.LocalTime |
readLocalTime6() |
protected java.time.LocalTime |
readLocalTime7() |
protected java.time.LocalTime |
readLocalTime8() |
protected java.time.LocalTime |
readLocalTime9() |
long |
readMillis19()
Reads milliseconds from a 19-character date string in JSON data.
|
void |
readNull()
Reads a null value from JSON data and advances the reader.
|
java.util.Date |
readNullOrNewDate()
Reads a Date value from JSON data, returning null if the value is null.
|
java.lang.Number |
readNumber()
Reads a Number value from JSON data.
|
protected void |
readNumber0()
Reads a number value from JSON data and stores it in internal fields.
|
java.util.Map<java.lang.String,java.lang.Object> |
readObject()
Reads JSON data and returns it as a Map.
|
java.time.OffsetDateTime |
readOffsetDateTime() |
java.time.OffsetTime |
readOffsetTime() |
java.lang.String |
readPattern()
Reads a pattern string from the JSON data.
|
java.lang.String |
readReference()
Reads a reference value from JSON data.
|
boolean |
readReference(java.util.Collection list,
int i)
Reads a reference value from JSON data and adds it to the specified collection at the given index.
|
java.lang.String |
readString()
Reads a string value from JSON data.
|
private java.lang.String |
readString(java.nio.charset.Charset charset) |
java.lang.String[] |
readStringArray()
Reads a JSON array of strings and returns it as a String array.
|
(package private) JSONException |
readStringError() |
private java.lang.String |
readStringNonAscii() |
private java.lang.String |
readStringTypeNotMatch() |
private java.lang.String |
readStringUTF8() |
private java.time.ZonedDateTime |
readTimestampWithTimeZone() |
long |
readTypeHashCode()
Reads the hash code of the current type in the JSON data.
|
long |
readTypeHashCode0() |
private java.lang.String |
readUTF16BE() |
private java.lang.String |
readUTF16LE() |
java.util.UUID |
readUUID()
Reads a UUID value from JSON data.
|
long |
readValueHashCode()
Reads the hash code of the current JSON value.
|
java.time.ZonedDateTime |
readZonedDateTime()
Reads a ZonedDateTime value from JSON data.
|
private java.time.ZonedDateTime |
readZonedDateTime0(int type) |
protected java.time.ZonedDateTime |
readZonedDateTimeX(int len) |
void |
reset(JSONReader.SavePoint savePoint) |
void |
skipComment()
Skips a comment in the JSON data, advancing the reader to the end of the comment.
|
boolean |
skipName()
Skips the current field name in a JSON object.
|
void |
skipValue()
Skips the current JSON value, advancing the reader to the next value or end of the current structure.
|
int |
startArray()
Starts reading a JSON array, advancing the reader to the first element.
|
(package private) static JSONException |
typeRefNotFound(int typeIndex) |
addResolveTask, addResolveTask, addResolveTask, addResolveTask, autoTypeFilter, autoTypeFilter, autoTypeFilter, autoTypeFilter, bigInt, bigInt, char1, char1Error, char2, checkNameBegin, current, decimal, endArray, error, error, error, error, error, errorOnNoneSerializable, features, getBigDecimal, getBigInteger, getContext, getDoubleValue, getFloatValue, getInt32Value, getInt64Value, getLocale, getNumber, getObjectReader, getObjectReaderAutoType, getOffset, getZoneId, handleResolveTasks, hasAutoTypeBeforeHandler, hasComma, info, info, isBool, isEnabled, isFirstIdentifier, isIgnoreNoneSerializable, isInitStringFieldAsEmpty, isJSONB, isSupportAutoType, isSupportAutoTypeOrHandler, isSupportBeanArray, isSupportBeanArray, isSupportSmartMatch, isSupportSmartMatch, isTypeRedirect, newCapacity, nextIfName8Match0, nextIfName8Match1, nextIfName8Match2, nextIfValue4Match10, nextIfValue4Match11, nextIfValue4Match2, nextIfValue4Match3, nextIfValue4Match4, nextIfValue4Match5, nextIfValue4Match6, nextIfValue4Match7, nextIfValue4Match8, nextIfValue4Match9, nextWithoutComment, notSupportName, numberError, numberError, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, of, ofJSONB, ofJSONB, ofJSONB, ofJSONB, ofJSONB, ofJSONB, ofJSONB, ofJSONB, read, read, read, read, readArray, readArray, readBase64, readCalendar, readCharacter, readDouble, readFieldNameHashCode, readFieldNameHashCodeE, readFieldNameHashCodeError, readFieldNameUnquote, readInt16, readInt16Value, readInt32ValueOverflow, readInt64ValueOverflow, readInt8, readInt8Value, readJSONArray, readJSONObject, readMillisFromString, readNaN, readNumber, readObject, readObject, readReference, readString, readStringNotMatch, setTypeRedirect, stringValue, syntaxError, syntaxError, toInt, toInt32, toInt64, toLong, toNumber, toNumber, toString, toString, valueError, wasNullstatic final long BASE
static final byte[] SHANGHAI_ZONE_ID_NAME_BYTES
static java.nio.charset.Charset GB18030
static final byte[] FIXED_TYPE_SIZE
final byte[] bytes
final int length
final int end
byte type
int strlen
byte strtype
int strBegin
byte[] valueBytes
char[] charBuf
final JSONFactory.CacheItem cacheItem
final SymbolTable symbolTable
long symbol0Hash
int symbol0Begin
int symbol0Length
byte symbol0StrType
long[] symbols
JSONReaderJSONB(JSONReader.Context ctx, java.io.InputStream is)
JSONReaderJSONB(JSONReader.Context ctx, byte[] bytes, int off, int length)
public java.lang.String getString()
JSONReadergetString in class JSONReaderpublic int readLength()
private static int getIntByte(byte[] bytes,
int offset,
int type)
private static int getInt3(byte[] bytes,
int offset,
int type)
private static int getLongByte(byte[] bytes,
int offset,
int type)
private static int getLong3(byte[] bytes,
int offset,
int type)
public boolean isArray()
JSONReaderisArray in class JSONReaderpublic boolean isObject()
JSONReaderisObject in class JSONReaderpublic boolean isNumber()
JSONReaderisNumber in class JSONReaderpublic boolean isString()
JSONReaderisString in class JSONReaderpublic boolean nextIfMatch(char ch)
JSONReadernextIfMatch in class JSONReaderch - The character to matchpublic boolean nextIfArrayStart()
JSONReadernextIfArrayStart in class JSONReaderpublic boolean nextIfComma()
JSONReadernextIfComma in class JSONReaderpublic boolean nextIfArrayEnd()
JSONReadernextIfArrayEnd in class JSONReaderpublic boolean nextIfObjectStart()
JSONReadernextIfObjectStart in class JSONReaderpublic boolean nextIfObjectEnd()
JSONReadernextIfObjectEnd in class JSONReaderpublic boolean nextIfNullOrEmptyString()
JSONReadernextIfNullOrEmptyString in class JSONReaderpublic <T> T read(java.lang.reflect.Type type)
read in class JSONReaderpublic <T> T read(java.lang.Class<T> type)
read in class JSONReaderpublic java.util.Map<java.lang.String,java.lang.Object> readObject()
JSONReaderreadObject in class JSONReaderpublic void read(java.util.Map map,
long features)
JSONReaderread in class JSONReadermap - The Map to populate with datafeatures - Reader features to apply during readingpublic java.lang.Object readAny()
JSONReaderreadAny in class JSONReaderprivate java.time.ZonedDateTime readTimestampWithTimeZone()
public byte getType()
JSONReadergetType in class JSONReaderpublic java.util.List readArray()
JSONReaderreadArray in class JSONReaderpublic java.util.List readArray(java.lang.reflect.Type itemType)
JSONReaderreadArray in class JSONReaderitemType - The type of elements in the arraypublic java.util.List readList(java.lang.reflect.Type[] types)
JSONReaderreadList in class JSONReadertypes - The types of elements in the arraypublic byte[] readHex()
JSONReaderreadHex in class JSONReaderpublic boolean isReference()
JSONReaderisReference in class JSONReaderpublic java.lang.String readReference()
JSONReaderreadReference in class JSONReaderpublic boolean readReference(java.util.Collection list,
int i)
JSONReaderreadReference in class JSONReaderlist - The collection to which the reference should be addedi - The index at which to add the reference in the collectionjava.lang.Object readAnyObject()
public ObjectReader checkAutoType(java.lang.Class expectClass, long expectClassHash, long features)
JSONReadercheckAutoType in class JSONReaderexpectClass - The expected classexpectClassHash - The expected class hashfeatures - Additional features to considerObjectReader checkAutoTypeWithHandler(java.lang.Class expectClass, long features, JSONReader.AutoTypeBeforeHandler autoTypeBeforeHandler, long typeHash)
void autoTypeError()
private ObjectReader getObjectReaderContext(ObjectReader autoTypeObjectReader, java.lang.Class objectClass, java.lang.ClassLoader contextClassLoader)
public int startArray()
JSONReaderstartArray in class JSONReaderpublic java.lang.String error(byte type)
public void next()
JSONReadernext in class JSONReaderpublic long readFieldNameHashCode()
JSONReaderreadFieldNameHashCode in class JSONReaderJSONException readFieldNameHashCodeError()
public boolean isInt()
JSONReaderisInt in class JSONReaderpublic boolean isNull()
JSONReaderisNull in class JSONReaderpublic java.util.Date readNullOrNewDate()
JSONReaderreadNullOrNewDate in class JSONReaderpublic boolean nextIfNull()
JSONReadernextIfNull in class JSONReaderpublic void readNull()
JSONReaderreadNull in class JSONReaderpublic boolean readIfNull()
JSONReaderreadIfNull in class JSONReaderpublic long readTypeHashCode()
JSONReaderreadTypeHashCode in class JSONReaderpublic long readTypeHashCode0()
public long readValueHashCode()
JSONReaderreadValueHashCode in class JSONReaderlong getNameHashCode()
public long getNameHashCodeLCase()
JSONReadergetNameHashCodeLCase in class JSONReaderpublic void skipValue()
JSONReaderskipValue in class JSONReaderpublic boolean skipName()
JSONReaderskipName in class JSONReaderstatic JSONException notSupportType(byte type)
JSONException notSupportString()
JSONException readInt32ValueError(byte type)
JSONException readInt64ValueError(byte type)
JSONException readStringError()
static JSONException typeRefNotFound(int typeIndex)
public java.lang.String readFieldName()
JSONReaderreadFieldName in class JSONReaderpublic java.lang.String getFieldName()
JSONReadergetFieldName in class JSONReaderpublic java.lang.String readString()
JSONReaderreadString in class JSONReaderprivate java.lang.String readStringNonAscii()
private java.lang.String readString(java.nio.charset.Charset charset)
private void readGB18030()
private java.lang.String readUTF16BE()
private java.lang.String readUTF16LE()
private java.lang.String readStringUTF8()
private java.lang.String readStringTypeNotMatch()
public java.lang.String[] readStringArray()
JSONReaderreadStringArray in class JSONReaderpublic char readCharValue()
JSONReaderreadCharValue in class JSONReaderpublic int[] readInt32ValueArray()
JSONReaderreadInt32ValueArray in class JSONReaderpublic long[] readInt64ValueArray()
JSONReaderreadInt64ValueArray in class JSONReaderpublic long readInt64Value()
JSONReaderreadInt64Value in class JSONReaderprivate long readInt64Value0(byte[] bytes,
byte type)
public int readInt32Value()
JSONReaderreadInt32Value in class JSONReaderprivate int readInt32Value0(byte[] bytes,
byte type)
public boolean isBinary()
JSONReaderisBinary in class JSONReaderpublic byte[] readBinary()
JSONReaderreadBinary in class JSONReaderpublic java.lang.Integer readInt32()
JSONReaderreadInt32 in class JSONReaderpublic java.lang.Long readInt64()
JSONReaderreadInt64 in class JSONReaderjava.lang.String readFixedAsciiString(int strlen)
public java.lang.Float readFloat()
JSONReaderreadFloat in class JSONReaderpublic float readFloatValue()
JSONReaderreadFloatValue in class JSONReaderprivate float readFloat0()
public double readDoubleValue()
JSONReaderreadDoubleValue in class JSONReaderprivate double readDoubleValue0()
protected void readNumber0()
JSONReaderreadNumber0 in class JSONReaderpublic java.lang.Number readNumber()
JSONReaderreadNumber in class JSONReaderpublic java.math.BigDecimal readBigDecimal()
JSONReaderreadBigDecimal in class JSONReaderprivate java.math.BigDecimal readDecimal0(byte type)
public java.math.BigInteger readBigInteger()
JSONReaderreadBigInteger in class JSONReaderprivate java.math.BigInteger readBigInteger0(byte type)
public java.time.LocalDate readLocalDate()
JSONReaderreadLocalDate in class JSONReaderprivate java.time.LocalDate readLocalDate0(int type)
public java.time.LocalDateTime readLocalDateTime()
JSONReaderreadLocalDateTime in class JSONReaderprivate java.time.LocalDateTime readLocalDateTime0(int type)
protected java.time.LocalDateTime readLocalDateTime12()
readLocalDateTime12 in class JSONReaderprotected java.time.LocalDateTime readLocalDateTime14()
readLocalDateTime14 in class JSONReaderprotected java.time.LocalDateTime readLocalDateTime16()
readLocalDateTime16 in class JSONReaderprotected java.time.LocalDateTime readLocalDateTime17()
readLocalDateTime17 in class JSONReaderprotected java.time.LocalTime readLocalTime10()
readLocalTime10 in class JSONReaderprotected java.time.LocalTime readLocalTime11()
readLocalTime11 in class JSONReaderprotected java.time.ZonedDateTime readZonedDateTimeX(int len)
readZonedDateTimeX in class JSONReaderpublic void skipComment()
JSONReaderskipComment in class JSONReaderpublic java.time.LocalTime readLocalTime()
JSONReaderreadLocalTime in class JSONReaderpublic java.time.Instant readInstant()
JSONReaderreadInstant in class JSONReaderpublic java.time.OffsetTime readOffsetTime()
readOffsetTime in class JSONReaderpublic java.time.OffsetDateTime readOffsetDateTime()
readOffsetDateTime in class JSONReaderpublic java.time.ZonedDateTime readZonedDateTime()
JSONReaderreadZonedDateTime in class JSONReaderprivate java.time.ZonedDateTime readZonedDateTime0(int type)
public java.util.UUID readUUID()
JSONReaderreadUUID in class JSONReaderpublic java.lang.Boolean readBool()
JSONReaderreadBool in class JSONReaderpublic boolean readBoolValue()
JSONReaderreadBoolValue in class JSONReaderprivate boolean readBoolValue0(byte type)
public boolean nextIfMatch(byte type)
JSONReadernextIfMatch in class JSONReadertype - The type to matchpublic boolean nextIfMatchTypedAny()
JSONReadernextIfMatchTypedAny in class JSONReaderprotected int getStringLength()
JSONReadergetStringLength in class JSONReaderpublic boolean isDate()
JSONReaderisDate in class JSONReaderpublic java.util.Date readDate()
JSONReaderreadDate in class JSONReaderpublic java.time.LocalDate readLocalDate8()
readLocalDate8 in class JSONReaderpublic java.time.LocalDate readLocalDate9()
readLocalDate9 in class JSONReaderprotected java.time.LocalDate readLocalDate10()
readLocalDate10 in class JSONReaderprotected java.time.LocalDate readLocalDate11()
readLocalDate11 in class JSONReaderprotected java.time.LocalTime readLocalTime5()
readLocalTime5 in class JSONReaderprotected java.time.LocalTime readLocalTime6()
readLocalTime6 in class JSONReaderprotected java.time.LocalTime readLocalTime7()
readLocalTime7 in class JSONReaderprotected java.time.LocalTime readLocalTime8()
readLocalTime8 in class JSONReaderprotected java.time.LocalTime readLocalTime9()
readLocalTime9 in class JSONReaderprotected java.time.LocalTime readLocalTime12()
readLocalTime12 in class JSONReaderprotected java.time.LocalTime readLocalTime15()
readLocalTime15 in class JSONReaderprotected java.time.LocalTime readLocalTime18()
readLocalTime18 in class JSONReaderprotected java.time.LocalDateTime readLocalDateTime18()
readLocalDateTime18 in class JSONReaderprotected java.time.LocalDateTime readLocalDateTime20()
readLocalDateTime20 in class JSONReaderpublic long readMillis19()
JSONReaderreadMillis19 in class JSONReaderprotected java.time.LocalDateTime readLocalDateTime19()
readLocalDateTime19 in class JSONReaderprotected java.time.LocalDateTime readLocalDateTimeX(int len)
readLocalDateTimeX in class JSONReaderpublic java.lang.String readPattern()
JSONReaderreadPattern in class JSONReaderpublic boolean nextIfMatchIdent(char c0,
char c1)
nextIfMatchIdent in class JSONReaderpublic boolean nextIfMatchIdent(char c0,
char c1,
char c2)
nextIfMatchIdent in class JSONReaderpublic long readFieldNameHashCodeUnquote()
JSONReaderreadFieldNameHashCodeUnquote in class JSONReaderpublic boolean nextIfSet()
JSONReadernextIfSet in class JSONReaderpublic boolean nextIfInfinity()
JSONReadernextIfInfinity in class JSONReaderpublic boolean nextIfMatchIdent(char c0,
char c1,
char c2,
char c3)
nextIfMatchIdent in class JSONReaderpublic boolean nextIfMatchIdent(char c0,
char c1,
char c2,
char c3,
char c4)
nextIfMatchIdent in class JSONReaderpublic boolean nextIfMatchIdent(char c0,
char c1,
char c2,
char c3,
char c4,
char c5)
nextIfMatchIdent in class JSONReaderpublic JSONReader.SavePoint mark()
mark in class JSONReaderpublic void reset(JSONReader.SavePoint savePoint)
reset in class JSONReaderpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class JSONReaderpublic boolean isEnd()
JSONReaderisEnd in class JSONReaderpublic int getRawInt()
JSONReadergetRawInt in class JSONReaderpublic long getRawLong()
JSONReadergetRawLong in class JSONReaderpublic boolean nextIfName4Match2()
JSONReadernextIfName4Match2 in class JSONReaderpublic boolean nextIfName4Match3()
JSONReadernextIfName4Match3 in class JSONReaderpublic boolean nextIfName4Match4(byte name1)
JSONReadernextIfName4Match4 in class JSONReadername1 - the fourth character to matchpublic boolean nextIfName4Match5(int name1)
JSONReadernextIfName4Match5 in class JSONReadername1 - the first 4 bytes of the name to matchpublic boolean nextIfName4Match6(int name1)
JSONReadernextIfName4Match6 in class JSONReadername1 - the first 4 bytes of the name to matchpublic boolean nextIfName4Match7(int name1)
JSONReadernextIfName4Match7 in class JSONReadername1 - the first 4 bytes of the name to matchpublic boolean nextIfName4Match8(int name1,
byte name2)
JSONReadernextIfName4Match8 in class JSONReadername1 - the first 4 bytes of the name to matchname2 - the eighth character to matchpublic boolean nextIfName4Match9(long name1)
JSONReadernextIfName4Match9 in class JSONReadername1 - the first 8 bytes of the name to matchpublic boolean nextIfName4Match10(long name1)
JSONReadernextIfName4Match10 in class JSONReadername1 - the first 8 bytes of the name to matchpublic boolean nextIfName4Match11(long name1)
JSONReadernextIfName4Match11 in class JSONReadername1 - the first 8 bytes of the name to matchpublic boolean nextIfName4Match12(long name1,
byte name2)
JSONReadernextIfName4Match12 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the last 4 bytes of the name to matchpublic boolean nextIfName4Match13(long name1,
int name2)
JSONReadernextIfName4Match13 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the last 4 bytes of the name to matchpublic boolean nextIfName4Match14(long name1,
int name2)
JSONReadernextIfName4Match14 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the last 4 bytes of the name to matchpublic boolean nextIfName4Match15(long name1,
int name2)
JSONReadernextIfName4Match15 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the last 4 bytes of the name to matchpublic boolean nextIfName4Match16(long name1,
int name2,
byte name3)
JSONReadernextIfName4Match16 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 4 bytes of the name to matchname3 - the last byte of the name to matchpublic boolean nextIfName4Match17(long name1,
long name2)
JSONReadernextIfName4Match17 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the last 8 bytes of the name to matchpublic boolean nextIfName4Match18(long name1,
long name2)
JSONReadernextIfName4Match18 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the last 8 bytes of the name to matchpublic boolean nextIfName4Match19(long name1,
long name2)
JSONReadernextIfName4Match19 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the last 8 bytes of the name to matchpublic boolean nextIfName4Match20(long name1,
long name2,
byte name3)
JSONReadernextIfName4Match20 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the last byte of the name to matchpublic boolean nextIfName4Match21(long name1,
long name2,
int name3)
JSONReadernextIfName4Match21 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the last 4 bytes of the name to matchpublic boolean nextIfName4Match22(long name1,
long name2,
int name3)
JSONReadernextIfName4Match22 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the last 4 bytes of the name to matchpublic boolean nextIfName4Match23(long name1,
long name2,
int name3)
JSONReadernextIfName4Match23 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the last 4 bytes of the name to matchpublic boolean nextIfName4Match24(long name1,
long name2,
int name3,
byte name4)
JSONReadernextIfName4Match24 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second to last 4 bytes of the name to matchname4 - the last byte of the name to matchpublic boolean nextIfName4Match25(long name1,
long name2,
long name3)
JSONReadernextIfName4Match25 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the last 8 bytes of the name to matchpublic boolean nextIfName4Match26(long name1,
long name2,
long name3)
JSONReadernextIfName4Match26 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the last 8 bytes of the name to matchpublic boolean nextIfName4Match27(long name1,
long name2,
long name3)
JSONReadernextIfName4Match27 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the last 8 bytes of the name to matchpublic boolean nextIfName4Match28(long name1,
long name2,
long name3,
byte name4)
JSONReadernextIfName4Match28 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second to last 8 bytes of the name to matchname4 - the last byte of the name to matchpublic boolean nextIfName4Match29(long name1,
long name2,
long name3,
int name4)
JSONReadernextIfName4Match29 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second to last 8 bytes of the name to matchname4 - the last 4 bytes of the name to matchpublic boolean nextIfName4Match30(long name1,
long name2,
long name3,
int name4)
JSONReadernextIfName4Match30 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second to last 8 bytes of the name to matchname4 - the last 4 bytes of the name to matchpublic boolean nextIfName4Match31(long name1,
long name2,
long name3,
int name4)
JSONReadernextIfName4Match31 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second to last 8 bytes of the name to matchname4 - the last 4 bytes of the name to matchpublic boolean nextIfName4Match32(long name1,
long name2,
long name3,
int name4,
byte name5)
JSONReadernextIfName4Match32 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second to last 8 bytes of the name to matchname4 - the second to last 4 bytes of the name to matchname5 - the last byte of the name to matchpublic boolean nextIfName4Match33(long name1,
long name2,
long name3,
long name4)
JSONReadernextIfName4Match33 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second middle 8 bytes of the name to matchname4 - the last 8 bytes of the name to matchpublic boolean nextIfName4Match34(long name1,
long name2,
long name3,
long name4)
JSONReadernextIfName4Match34 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second middle 8 bytes of the name to matchname4 - the last 8 bytes of the name to matchpublic boolean nextIfName4Match35(long name1,
long name2,
long name3,
long name4)
JSONReadernextIfName4Match35 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second middle 8 bytes of the name to matchname4 - the last 8 bytes of the name to matchpublic boolean nextIfName4Match36(long name1,
long name2,
long name3,
long name4,
byte name5)
JSONReadernextIfName4Match36 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second middle 8 bytes of the name to matchname4 - the second to last 8 bytes of the name to matchname5 - the last byte of the name to matchpublic boolean nextIfName4Match37(long name1,
long name2,
long name3,
long name4,
int name5)
JSONReadernextIfName4Match37 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second middle 8 bytes of the name to matchname4 - the third to last 8 bytes of the name to matchname5 - the last 4 bytes of the name to matchpublic boolean nextIfName4Match38(long name1,
long name2,
long name3,
long name4,
int name5)
JSONReadernextIfName4Match38 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second middle 8 bytes of the name to matchname4 - the third to last 8 bytes of the name to matchname5 - the last 4 bytes of the name to matchpublic boolean nextIfName4Match39(long name1,
long name2,
long name3,
long name4,
int name5)
JSONReadernextIfName4Match39 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second middle 8 bytes of the name to matchname4 - the third to last 8 bytes of the name to matchname5 - the last 4 bytes of the name to matchpublic boolean nextIfName4Match40(long name1,
long name2,
long name3,
long name4,
int name5,
byte name6)
JSONReadernextIfName4Match40 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second middle 8 bytes of the name to matchname4 - the third to last 8 bytes of the name to matchname5 - the second to last 4 bytes of the name to matchname6 - the last byte of the name to matchpublic boolean nextIfName4Match41(long name1,
long name2,
long name3,
long name4,
long name5)
JSONReadernextIfName4Match41 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second middle 8 bytes of the name to matchname4 - the third middle 8 bytes of the name to matchname5 - the last 8 bytes of the name to matchpublic boolean nextIfName4Match42(long name1,
long name2,
long name3,
long name4,
long name5)
JSONReadernextIfName4Match42 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second middle 8 bytes of the name to matchname4 - the third middle 8 bytes of the name to matchname5 - the last 8 bytes of the name to matchpublic boolean nextIfName4Match43(long name1,
long name2,
long name3,
long name4,
long name5)
JSONReadernextIfName4Match43 in class JSONReadername1 - the first 8 bytes of the name to matchname2 - the middle 8 bytes of the name to matchname3 - the second middle 8 bytes of the name to matchname4 - the third middle 8 bytes of the name to matchname5 - the last 8 bytes of the name to matchstatic int check3(int off,
int end)
static int check7(int off,
int end)
static void checkBigintLen(int len,
int offset,
int end)
static JSONException outOfBoundsCheckFromToIndex(int offset, int end)
public void readArray(java.util.Collection list,
java.lang.reflect.Type itemType)
readArray in class JSONReader