public abstract class JsonReaderSupport extends Object
JsonRecordParserFactory
Modifier and Type | Field and Description |
---|---|
protected boolean |
eof
Flag indicating the end of the stream was reached
|
protected Reader |
in
The
Reader to read from |
Modifier and Type | Method and Description |
---|---|
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. |
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 parseIOException
protected String readString() throws IOException
IOException
protected char readUnicode() throws IOException
IOException
protected boolean isWhitespace(char c)
c
- the character to test