|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.stream.json.JsonReaderSupport
public abstract class JsonReaderSupport
Base class for reading a JSON formatted stream.
JsonRecordParserFactory
Field Summary | |
---|---|
protected boolean |
eof
Flag indicating the end of the stream was reached |
protected Reader |
in
The Reader to read from |
Method Summary | |
---|---|
protected boolean |
isWhitespace(char c)
Returns whether the given character is whitespace. |
protected Object |
parseValue(String text)
Parses a null, boolean or numeric value from the given text. |
protected List<Object> |
readArray()
Reads a JSON array from the input stream. |
protected Map<String,Object> |
readObject()
Reads the next JSON object from the stream. |
protected String |
readString()
Reads a JSON string value from the input stream. |
protected char |
readUnicode()
Reads a Unicode character in JSON format. |
protected void |
setReader(Reader in)
Set the Reader to read from. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Reader in
Reader
to read from
protected boolean eof
Method Detail |
---|
protected void setReader(Reader in)
Reader
to read from.
in
- the Reader
protected Map<String,Object> readObject() throws IOException
Map
IOException
protected List<Object> readArray() throws IOException
IOException
protected Object parseValue(String text) throws IOException
text
- the text to parse
IOException
protected String readString() throws IOException
IOException
protected char readUnicode() throws IOException
IOException
protected boolean isWhitespace(char c)
c
- the character to test
|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |