public class JSONReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
EOF |
Constructor and Description |
---|
JSONReader() |
JSONReader(JSONHandler handler,
JSONTokenizer jtok) |
JSONReader(JSONTokenizer jtok) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear saved info in the underlying handler
|
void |
close() |
JSONTokenizer |
getTokenizer() |
void |
parse() |
void |
parse(java.io.BufferedReader reader) |
void |
parse(java.io.File file) |
void |
parse(JSONTokenizer jtok) |
void |
parse(java.lang.String str) |
java.lang.Object |
read()
Try to retrieve the next JSON object from the handler.
|
java.lang.Object |
read(java.io.BufferedReader reader)
Parses and returns next object
|
java.lang.Object |
read(java.io.File file) |
java.lang.Object |
read(JSONTokenizer jtok) |
java.lang.Object |
read(java.lang.String str) |
public JSONReader(JSONHandler handler, JSONTokenizer jtok)
public JSONReader(JSONTokenizer jtok)
public JSONReader()
public JSONTokenizer getTokenizer()
public void parse(java.io.BufferedReader reader)
public void parse(java.lang.String str)
public void parse(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void parse(JSONTokenizer jtok)
public void parse()
public java.lang.Object read(java.io.BufferedReader reader)
public java.lang.Object read(java.lang.String str)
public java.lang.Object read(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public java.lang.Object read(JSONTokenizer jtok)
public void clear()
public java.lang.Object read()
public void close()