Package com.alibaba.fastjson2
Class JSONReaderASCIIVector
java.lang.Object
com.alibaba.fastjson2.JSONReader
com.alibaba.fastjson2.JSONReaderASCIIVector
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.alibaba.fastjson2.JSONReader
JSONReader.AutoTypeBeforeHandler, com.alibaba.fastjson2.JSONReader.BigIntegerCreator, JSONReader.Context, JSONReader.Feature, com.alibaba.fastjson2.JSONReader.ResolveTask, JSONReader.SavePoint -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final byte[]protected final intprotected final intprotected final InputStreamprotected final intprotected booleanprotected intprotected intprotected intprotected intprotected final int(package private) final StringFields inherited from class com.alibaba.fastjson2.JSONReader
boolValue, ch, comma, complex, context, doubleChars, EOI, exponent, 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_NULL, JSON_TYPE_OBJECT, JSON_TYPE_STRING, LONG_MASK, mag0, mag1, mag2, mag3, MAX_EXP, nameEscape, negative, offset, resolveTasks, scale, SHANGHAI_ZONE_ID_HASH, SPACE, stringValue, typeRedirect, valueEscape, valueType, wasNull -
Constructor Summary
ConstructorsConstructorDescriptionJSONReaderASCIIVector(JSONReader.Context ctx, String str, byte[] bytes, int offset, int length) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longintbooleanisNull()final booleanfinal voidnext()booleanfinal booleannextIfMatch(char arg0) booleannextIfMatchIdent(char arg0, char arg1, char arg2) booleannextIfMatchIdent(char arg0, char arg1, char arg2, char arg3) booleannextIfMatchIdent(char arg0, char arg1, char arg2, char arg3, char arg4) booleannextIfMatchIdent(char arg0, char arg1, char arg2, char arg3, char arg4, char arg5) booleanbooleanbooleandoublelonglongfloatbyte[]readHex()booleanintlongprotected LocalDateprotected LocalDateTimeprotected LocalDateTimeprotected LocalDateTimeprotected LocalDateTimeprotected LocalDateTimereadLocalDateTimeX(int arg0) protected LocalTimeprotected LocalTimeprotected LocalTimeprotected LocalTimeprotected LocalTimeprotected LocalTimelongvoidreadNull()voidreadNumber(ValueConsumer arg0, boolean arg1) voidvoidreadString(ValueConsumer arg0, boolean arg1) protected voidreadUUID()longprotected ZonedDateTimereadZonedDateTimeX(int arg0) voidbooleanskipName()protected voidvoidMethods inherited from class com.alibaba.fastjson2.JSONReader
addResolveTask, addResolveTask, addResolveTask, addResolveTask, autoTypeFilter, autoTypeFilter, autoTypeFilter, autoTypeFilter, bigInt, bigInt, char1, char2, char4, checkAutoType, current, endArray, errorOnNoneSerializable, features, getBigDecimal, getBigInteger, getContext, getInt32Value, getInt64, getInt64Value, getLocale, getNumber, getObjectReader, getOffset, getType, getZoneId, handleResolveTasks, hasComma, info, isArray, isBinary, isEnabled, isEnd, isFirstIdentifier, isIgnoreNoneSerializable, isInitStringFieldAsEmpty, isInt, isJSONB, isLocalDate, isLocalDateTime, isNumber, isObject, isString, isSupportAutoType, isSupportBeanArray, isSupportBeanArray, isSupportSmartMatch, isSupportSmartMatch, isTypeRedirect, mark, nextIfMatch, nextIfObjectEnd, nextIfObjectStart, 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, read, read, read, read, read, read, readAny, readArray, readArray, readArray, readArray, readArray, readBigDecimal, readBigInteger, readBinary, readBool, readBoolValue, readCharValue, readDouble, readFieldNameUnquote, readFloat, readInstant, readList, readLocalDate, readLocalDateTime, readLocalTime, readMillisFromString, readNumber, readObject, readObject, readObject, readTypeHashCode, readZonedDateTime, reset, setTypeRedirect, startArray, toInt, toInt32, toInt64, toLong, toNumber, toNumber, toString, toString, wasNull
-
Field Details
-
str
-
bytes
protected final byte[] bytes -
length
protected final int length -
start
protected final int start -
end
protected final int end -
nameBegin
protected int nameBegin -
nameEnd
protected int nameEnd -
nameLength
protected int nameLength -
nameAscii
protected boolean nameAscii -
referenceBegin
protected int referenceBegin -
in
-
cacheIndex
protected final int cacheIndex
-
-
Constructor Details
-
JSONReaderASCIIVector
public JSONReaderASCIIVector(JSONReader.Context ctx, String str, byte[] bytes, int offset, int length)
-
-
Method Details
-
readString
-
next
public final void next() -
nextIfMatch
public final boolean nextIfMatch(char arg0) -
nextIfNullOrEmptyString
public boolean nextIfNullOrEmptyString() -
readFieldNameHashCode
public long readFieldNameHashCode() -
readValueHashCode
public long readValueHashCode() -
getNameHashCodeLCase
public long getNameHashCodeLCase() -
getFieldName
-
readFieldName
-
readString0
protected void readString0() -
nextIfSet
public boolean nextIfSet()- Specified by:
nextIfSetin classJSONReader
-
nextIfInfinity
public boolean nextIfInfinity()- Overrides:
nextIfInfinityin classJSONReader
-
readFieldNameHashCodeUnquote
public long readFieldNameHashCodeUnquote()- Specified by:
readFieldNameHashCodeUnquotein classJSONReader
-
readInt32Value
public int readInt32Value()- Specified by:
readInt32Valuein classJSONReader
-
readInt32
- Specified by:
readInt32in classJSONReader
-
readInt64Value
public long readInt64Value()- Specified by:
readInt64Valuein classJSONReader
-
readInt64
- Specified by:
readInt64in classJSONReader
-
readDoubleValue
public double readDoubleValue()- Specified by:
readDoubleValuein classJSONReader
-
readFloatValue
public float readFloatValue()- Specified by:
readFloatValuein classJSONReader
-
readString
- Overrides:
readStringin classJSONReader
-
skipName
public boolean skipName()- Specified by:
skipNamein classJSONReader
-
skipValue
public void skipValue()- Specified by:
skipValuein classJSONReader
-
getString
- Specified by:
getStringin classJSONReader
-
skipString
protected void skipString() -
skipLineComment
public void skipLineComment()- Specified by:
skipLineCommentin classJSONReader
-
readNumber0
public void readNumber0()- Specified by:
readNumber0in classJSONReader
-
readNumber
- Overrides:
readNumberin classJSONReader
-
readIfNull
public boolean readIfNull()- Specified by:
readIfNullin classJSONReader
-
isNull
public boolean isNull()- Specified by:
isNullin classJSONReader
-
readNullOrNewDate
- Specified by:
readNullOrNewDatein classJSONReader
-
nextIfNull
public boolean nextIfNull()- Specified by:
nextIfNullin classJSONReader
-
readNull
public void readNull()- Specified by:
readNullin classJSONReader
-
getStringLength
public int getStringLength()- Specified by:
getStringLengthin classJSONReader
-
readZonedDateTimeX
- Specified by:
readZonedDateTimeXin classJSONReader
-
readLocalDate8
- Specified by:
readLocalDate8in classJSONReader
-
readLocalDate9
- Specified by:
readLocalDate9in classJSONReader
-
readLocalDate10
- Specified by:
readLocalDate10in classJSONReader
-
readLocalDate11
- Specified by:
readLocalDate11in classJSONReader
-
readLocalDateTime17
- Specified by:
readLocalDateTime17in classJSONReader
-
readLocalTime5
- Specified by:
readLocalTime5in classJSONReader
-
readLocalTime8
- Specified by:
readLocalTime8in classJSONReader
-
readLocalTime11
- Specified by:
readLocalTime11in classJSONReader
-
readLocalTime10
- Specified by:
readLocalTime10in classJSONReader
-
readLocalTime12
- Specified by:
readLocalTime12in classJSONReader
-
readLocalTime18
- Specified by:
readLocalTime18in classJSONReader
-
readLocalDateTime16
- Specified by:
readLocalDateTime16in classJSONReader
-
readLocalDateTime18
- Specified by:
readLocalDateTime18in classJSONReader
-
readLocalDateTime19
- Specified by:
readLocalDateTime19in classJSONReader
-
readMillis19
public long readMillis19()- Specified by:
readMillis19in classJSONReader
-
readLocalDateTimeX
- Specified by:
readLocalDateTimeXin classJSONReader
-
readUUID
- Specified by:
readUUIDin classJSONReader
-
readPattern
- Specified by:
readPatternin classJSONReader
-
nextIfMatchIdent
public boolean nextIfMatchIdent(char arg0, char arg1, char arg2) - Specified by:
nextIfMatchIdentin classJSONReader
-
nextIfMatchIdent
public boolean nextIfMatchIdent(char arg0, char arg1, char arg2, char arg3) - Specified by:
nextIfMatchIdentin classJSONReader
-
nextIfMatchIdent
public boolean nextIfMatchIdent(char arg0, char arg1, char arg2, char arg3, char arg4) - Specified by:
nextIfMatchIdentin classJSONReader
-
nextIfMatchIdent
public boolean nextIfMatchIdent(char arg0, char arg1, char arg2, char arg3, char arg4, char arg5) - Specified by:
nextIfMatchIdentin classJSONReader
-
readHex
public byte[] readHex()- Specified by:
readHexin classJSONReader
-
isReference
public final boolean isReference()- Specified by:
isReferencein classJSONReader
-
readReference
- Specified by:
readReferencein classJSONReader
-
info
- Overrides:
infoin classJSONReader
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classJSONReader
-