Class JsonTokenizer

java.lang.Object
org.eclipse.parsson.JsonTokenizer
All Implemented Interfaces:
Closeable, AutoCloseable

final class JsonTokenizer extends Object implements Closeable
JSON Tokenizer
  • Field Details

    • HEX

      private static final int[] HEX
    • HEX_LENGTH

      private static final int HEX_LENGTH
    • jsonContext

      private final JsonContext jsonContext
    • reader

      private final 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 BigDecimal bd
  • Constructor Details

  • Method Details

    • 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

    • 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 IOException
      Throws:
      IOException
    • reset

      private void reset()
    • getValue

      String getValue()
    • getCharSequence

      CharSequence getCharSequence()
    • getBigDecimal

      BigDecimal getBigDecimal()
    • getInt

      int getInt()
    • getLong

      long getLong()
    • isDefinitelyInt

      boolean isDefinitelyInt()
    • isDefinitelyLong

      boolean isDefinitelyLong()
    • isIntegral

      boolean isIntegral()
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • unexpectedChar

      private jakarta.json.stream.JsonParsingException unexpectedChar(int ch)
    • expectedChar

      private jakarta.json.stream.JsonParsingException expectedChar(int unexpected, char expected)