Package org.cakelab.json.parser.basic
Class Scanner
- java.lang.Object
-
- org.cakelab.json.parser.basic.Scanner
-
public class Scanner extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getBooleanValue()
int
getColumn()
int
getLine()
char
getLookahead()
java.lang.String
getName()
double
getNumberValue()
java.lang.String
getStringValue()
java.lang.Object
getValue()
int
next()
int
nextName()
int
nextValue()
-
-
-
Constructor Detail
-
Scanner
public Scanner(java.io.Reader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
Scanner
public Scanner(java.io.InputStream in, java.nio.charset.Charset charset) throws java.io.IOException
- Throws:
java.io.IOException
-
Scanner
public Scanner(java.lang.String jsonString) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
next
public int next() throws java.io.IOException
- Throws:
java.io.IOException
-
nextName
public int nextName() throws java.io.IOException, JSONException
- Throws:
java.io.IOException
JSONException
-
getName
public java.lang.String getName()
-
nextValue
public int nextValue() throws java.io.IOException, JSONException
- Throws:
java.io.IOException
JSONException
-
getBooleanValue
public boolean getBooleanValue()
-
getNumberValue
public double getNumberValue()
-
getStringValue
public java.lang.String getStringValue()
-
getLookahead
public char getLookahead() throws java.io.IOException
- Throws:
java.io.IOException
-
getLine
public int getLine()
-
getColumn
public int getColumn()
-
getValue
public java.lang.Object getValue()
-
-