public final class JSONReaderScanner extends JSONLexerBase
matchStat
ARRAY, END, EOI, NOT_MATCH, NOT_MATCH_NAME, OBJECT, UNKNOWN, VALUE, VALUE_NULL
Constructor and Description |
---|
JSONReaderScanner(char[] input,
int inputLength) |
JSONReaderScanner(char[] input,
int inputLength,
int features) |
JSONReaderScanner(Reader reader) |
JSONReaderScanner(Reader reader,
int features) |
JSONReaderScanner(String input) |
JSONReaderScanner(String input,
int features) |
Modifier and Type | Method and Description |
---|---|
String |
addSymbol(int offset,
int len,
int hash,
SymbolTable symbolTable) |
byte[] |
bytesValue() |
boolean |
charArrayCompare(char[] chars) |
char |
charAt(int index) |
void |
close() |
BigDecimal |
decimalValue() |
int |
indexOf(char ch,
int startIndex) |
boolean |
isBlankInput() |
boolean |
isEOF() |
char |
next() |
String |
numberString() |
String |
stringVal()
The value of a literal token, recorded as a string.
|
char[] |
sub_chars(int offset,
int count) |
String |
subString(int offset,
int count) |
config, decimalValue, doubleValue, floatValue, getCalendar, getCurrent, getFeatures, getLocale, getTimeZone, info, integerValue, intValue, isEnabled, isEnabled, isEnabled, isRef, isWhitespace, longValue, matchField, matchField, matchField2, matchStat, newCollectionByType, nextIdent, nextToken, nextToken, nextTokenWithChar, nextTokenWithColon, nextTokenWithColon, pos, readString, resetStringPosition, scanBoolean, scanDate, scanDecimal, scanDouble, scanEnum, scanEnumSymbol, scanFalse, scanFieldBigInteger, scanFieldBoolean, scanFieldDate, scanFieldDecimal, scanFieldDouble, scanFieldFloat, scanFieldFloatArray, scanFieldFloatArray2, scanFieldInt, scanFieldIntArray, scanFieldLong, scanFieldString, scanFieldStringArray, scanFieldStringArray, scanFieldSymbol, scanFieldUUID, scanFloat, scanHex, scanIdent, scanInt, scanLong, scanNullOrNew, scanNullOrNew, scanNumber, scanString, scanString, scanStringArray, scanSymbol, scanSymbol, scanSymbolUnQuoted, scanSymbolWithSeperator, scanTrue, scanType, scanTypeName, scanUUID, seekArrayToItem, seekObjectToField, seekObjectToField, seekObjectToFieldDeepScan, setFeatures, setLocale, setTimeZone, setToken, skipArray, skipObject, skipObject, skipWhitespace, stringDefaultValue, token, tokenName
public JSONReaderScanner(String input)
public JSONReaderScanner(String input, int features)
public JSONReaderScanner(char[] input, int inputLength)
public JSONReaderScanner(Reader reader)
public JSONReaderScanner(Reader reader, int features)
public JSONReaderScanner(char[] input, int inputLength, int features)
public final char charAt(int index)
charAt
in class JSONLexerBase
public final int indexOf(char ch, int startIndex)
indexOf
in class JSONLexerBase
public final String addSymbol(int offset, int len, int hash, SymbolTable symbolTable)
addSymbol
in class JSONLexerBase
public final char next()
next
in interface JSONLexer
next
in class JSONLexerBase
public final boolean charArrayCompare(char[] chars)
public byte[] bytesValue()
bytesValue
in interface JSONLexer
bytesValue
in class JSONLexerBase
public final String stringVal()
stringVal
in interface JSONLexer
stringVal
in class JSONLexerBase
public final String subString(int offset, int count)
subString
in class JSONLexerBase
public final char[] sub_chars(int offset, int count)
public final String numberString()
numberString
in interface JSONLexer
numberString
in class JSONLexerBase
public final BigDecimal decimalValue()
decimalValue
in interface JSONLexer
decimalValue
in class JSONLexerBase
public void close()
close
in interface JSONLexer
close
in interface Closeable
close
in interface AutoCloseable
close
in class JSONLexerBase
public boolean isEOF()
isEOF
in class JSONLexerBase
public final boolean isBlankInput()
isBlankInput
in interface JSONLexer
isBlankInput
in class JSONLexerBase
Copyright © 2012–2022 Alibaba Group. All rights reserved.