- java.lang.Object
-
- org.eclipse.parsson.JsonTokenizer
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
final class JsonTokenizer extends java.lang.Object implements java.io.CloseableJSON Tokenizer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classJsonTokenizer.JsonToken
-
Field Summary
Fields Modifier and Type Field Description private java.math.BigDecimalbdprivate char[]bufprivate longbufferOffsetprivate booleanclosedprivate booleanfracOrExpprivate static int[]HEXprivate static intHEX_LENGTHprivate JsonContextjsonContextprivate longlastLineOffsetprivate longlineNoprivate booleanminusprivate intreadBeginprivate intreadEndprivate java.io.Readerreaderprivate intstoreBeginprivate intstoreEnd
-
Constructor Summary
Constructors Constructor Description JsonTokenizer(java.io.Reader reader, JsonContext jsonContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()private jakarta.json.stream.JsonParsingExceptionexpectedChar(int unexpected, char expected)private intfillBuf()(package private) java.math.BigDecimalgetBigDecimal()(package private) java.lang.CharSequencegetCharSequence()(package private) intgetInt()(package private) jakarta.json.stream.JsonLocationgetLastCharLocation()(package private) jakarta.json.stream.JsonLocationgetLocation()(package private) longgetLong()(package private) java.lang.StringgetValue()(package private) booleanhasNextToken()(package private) booleanisDefinitelyInt()(package private) booleanisDefinitelyLong()(package private) booleanisIntegral()(package private) JsonTokenizer.JsonTokennextToken()private intpeek()private intread()private voidreadFalse()private voidreadNull()private voidreadNumber(int ch)private intreadNumberChar()private voidreadString()private voidreadTrue()private voidreset()private voidunescape()private jakarta.json.stream.JsonParsingExceptionunexpectedChar(int ch)
-
-
-
Field Detail
-
HEX
private static final int[] HEX
-
HEX_LENGTH
private static final int HEX_LENGTH
-
jsonContext
private final JsonContext jsonContext
-
reader
private final java.io.Reader reader
-
buf
private char[] buf
-
readBegin
private int readBegin
-
readEnd
private int readEnd
-
storeBegin
private int storeBegin
-
storeEnd
private int storeEnd
-
lineNo
private long lineNo
-
lastLineOffset
private long lastLineOffset
-
bufferOffset
private long bufferOffset
-
closed
private boolean closed
-
minus
private boolean minus
-
fracOrExp
private boolean fracOrExp
-
bd
private java.math.BigDecimal bd
-
-
Constructor Detail
-
JsonTokenizer
JsonTokenizer(java.io.Reader reader, JsonContext jsonContext)
-
-
Method Detail
-
readString
private void readString()
-
unescape
private void unescape()
-
readNumberChar
private int readNumberChar()
-
readNumber
private void readNumber(int ch)
-
readTrue
private void readTrue()
-
readFalse
private void readFalse()
-
readNull
private void readNull()
-
nextToken
JsonTokenizer.JsonToken nextToken()
-
hasNextToken
boolean hasNextToken()
-
peek
private int peek()
-
getLastCharLocation
jakarta.json.stream.JsonLocation getLastCharLocation()
-
getLocation
jakarta.json.stream.JsonLocation getLocation()
-
read
private int read()
-
fillBuf
private int fillBuf() throws java.io.IOException- Throws:
java.io.IOException
-
reset
private void reset()
-
getValue
java.lang.String getValue()
-
getCharSequence
java.lang.CharSequence getCharSequence()
-
getBigDecimal
java.math.BigDecimal getBigDecimal()
-
getInt
int getInt()
-
getLong
long getLong()
-
isDefinitelyInt
boolean isDefinitelyInt()
-
isDefinitelyLong
boolean isDefinitelyLong()
-
isIntegral
boolean isIntegral()
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
unexpectedChar
private jakarta.json.stream.JsonParsingException unexpectedChar(int ch)
-
expectedChar
private jakarta.json.stream.JsonParsingException expectedChar(int unexpected, char expected)
-
-