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
public class JSONScanner extends JSONLexerBase implements Closeable
-
-
Constructor Summary
Constructors Constructor Description JSONScanner(com.alibaba.fastjson2.JSONReader reader)JSONScanner(String str)JSONScanner(String str, int features)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidconfig(Feature feature, boolean state)BigDecimaldecimalValue()CalendargetCalendar()chargetCurrent()com.alibaba.fastjson2.JSONReadergetReader()intintValue()booleanisBlankInput()booleanisEnabled(Feature feature)booleanisEOF()booleanisOrderedField()longlongValue()voidnextToken()voidnextToken(int expect)booleanscanISO8601DateIfMatch()booleanscanISO8601DateIfMatch(boolean strict)StringstringVal()inttoken()
-
-
-
Method Detail
-
getCalendar
public Calendar getCalendar()
-
scanISO8601DateIfMatch
public boolean scanISO8601DateIfMatch()
-
scanISO8601DateIfMatch
public boolean scanISO8601DateIfMatch(boolean strict)
-
getReader
public com.alibaba.fastjson2.JSONReader getReader()
-
isOrderedField
public boolean isOrderedField()
-
decimalValue
public BigDecimal decimalValue()
- Specified by:
decimalValuein interfaceJSONLexer
-
token
public int token()
-
config
public void config(Feature feature, boolean state)
-
isEnabled
public boolean isEnabled(Feature feature)
-
isBlankInput
public boolean isBlankInput()
- Specified by:
isBlankInputin interfaceJSONLexer
-
getCurrent
public char getCurrent()
- Specified by:
getCurrentin interfaceJSONLexer
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-