JSONLexer (fastjson 1.1.26 API)

fastjson



com.alibaba.fastjson.parser Interface JSONLexer

All Known Implementing Classes:
JSONScanner

public interface JSONLexer

Author:
wenshao

Method Summary
 byte[]
 void
 void
 BigDecimal
 Number
 double
 float
 int
 Calendar
 char
 void
 Number
 int
 boolean
 boolean
 boolean
 boolean
 long
 void
 void
 void
 String
 int
 void
 boolean
 void
 void
 String
 String
 String
 void
 void
 String
 String
 int
 String
 

Method Detail

isResetFlag

boolean isResetFlag()

setResetFlag

void setResetFlag(boolean resetFlag)

nextToken

void nextToken()

nextToken

void nextToken(int expect)

token

int token()

tokenName

String tokenName()

pos

int pos()

getBufferPosition

int getBufferPosition()

stringVal

String stringVal()

integerValue

Number integerValue()

nextTokenWithColon

void nextTokenWithColon(int expect)

decimalValue

BigDecimal decimalValue()

decimalValue

Number decimalValue(boolean decimal)

doubleValue

double doubleValue()

floatValue

float floatValue()

config

void config(Feature feature,
            boolean state)

isEnabled

boolean isEnabled(Feature feature)

numberString

String numberString()

isEOF

boolean isEOF()

symbol

String symbol(SymbolTable symbolTable)

isBlankInput

boolean isBlankInput()

getCurrent

char getCurrent()

skipWhitespace

void skipWhitespace()

incrementBufferPosition

void incrementBufferPosition()

scanSymbol

String scanSymbol(SymbolTable symbolTable)

scanSymbol

String scanSymbol(SymbolTable symbolTable,
                  char quote)

resetStringPosition

void resetStringPosition()

scanSymbolUnQuoted

String scanSymbolUnQuoted(SymbolTable symbolTable)

scanString

void scanString()

scanNumber

void scanNumber()

scanISO8601DateIfMatch

boolean scanISO8601DateIfMatch()

getCalendar

Calendar getCalendar()

intValue

int intValue()
             throws NumberFormatException
Throws:
NumberFormatException

longValue

long longValue()
               throws NumberFormatException
Throws:
NumberFormatException

bytesValue

byte[] bytesValue()

close

void close()


Copyright © 2012 Alibaba Group. All Rights Reserved.