Package com.alibaba.fastjson.parser
Class JSONScanner
java.lang.Object
com.alibaba.fastjson.parser.JSONLexerBase
com.alibaba.fastjson.parser.JSONScanner
- All Implemented Interfaces:
JSONLexer,Closeable,AutoCloseable
-
Field Summary
FieldsFields inherited from interface com.alibaba.fastjson.parser.JSONLexer
ARRAY, END, EOI, NOT_MATCH, NOT_MATCH_NAME, OBJECT, UNKNOWN, VALUE, VALUE_NULL -
Constructor Summary
ConstructorsConstructorDescriptionJSONScanner(com.alibaba.fastjson2.JSONReader reader) JSONScanner(String str) JSONScanner(String str, int features) -
Method Summary
-
Field Details
-
token
protected int token -
calendar
-
str
-
-
Constructor Details
-
JSONScanner
public JSONScanner(com.alibaba.fastjson2.JSONReader reader) -
JSONScanner
-
JSONScanner
-
-
Method Details
-
getCalendar
-
scanISO8601DateIfMatch
public boolean scanISO8601DateIfMatch() -
scanISO8601DateIfMatch
public boolean scanISO8601DateIfMatch(boolean strict) -
getReader
public com.alibaba.fastjson2.JSONReader getReader() -
isOrderedField
public boolean isOrderedField() -
stringVal
-
decimalValue
- Specified by:
decimalValuein interfaceJSONLexer
-
token
public int token() -
config
-
isEnabled
-
isBlankInput
public boolean isBlankInput()- Specified by:
isBlankInputin interfaceJSONLexer
-
intValue
public int intValue() -
longValue
public long longValue() -
nextToken
public final void nextToken() -
getCurrent
public char getCurrent()- Specified by:
getCurrentin interfaceJSONLexer
-
nextToken
public final void nextToken(int expect) -
isEOF
public boolean isEOF() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-