Class JsonLexer
- java.lang.Object
-
- de.undercouch.citeproc.helper.json.JsonLexer
-
public class JsonLexer extends java.lang.ObjectA simple JSON lexer- Author:
- Michel Kramer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonLexer.TypeToken types
-
Constructor Summary
Constructors Constructor Description JsonLexer(java.io.Reader r)Creates a new lexer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonLexer.TypereadNextToken()Reads the next token from the streamjava.lang.NumberreadNumber()Reads a number from the streamjava.lang.StringreadString()Reads a string from the stream
-
-
-
Method Detail
-
readNextToken
public JsonLexer.Type readNextToken() throws java.io.IOException
Reads the next token from the stream- Returns:
- the token
- Throws:
java.io.IOException- if the stream could not be read
-
readString
public java.lang.String readString() throws java.io.IOExceptionReads a string from the stream- Returns:
- the string
- Throws:
java.io.IOException- if the stream could not be read
-
readNumber
public java.lang.Number readNumber() throws java.io.IOExceptionReads a number from the stream- Returns:
- the number
- Throws:
java.io.IOException- if the stream could not be read
-
-