| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.beanio.stream.json.JsonReaderSupport
org.beanio.stream.json.JsonReader
public class JsonReader
A RecordReader implementation for JSON formatted records.
JsonRecordParserFactory| Field Summary | 
|---|
| Fields inherited from class org.beanio.stream.json.JsonReaderSupport | 
|---|
| eof, in | 
| Constructor Summary | |
|---|---|
| JsonReader(Reader in)Constructs a new JsonReader. | |
| Method Summary | |
|---|---|
|  void | close()Closes this input stream. | 
|  int | getRecordLineNumber()Returns the line number of the last record from this input stream. | 
|  String | getRecordText()Returns the unparsed record text of the last record read. | 
| static void | main(String[] args) | 
|  Map<String,Object> | read()Reads a single record from this input stream. | 
| Methods inherited from class org.beanio.stream.json.JsonReaderSupport | 
|---|
| isWhitespace, parseValue, readArray, readObject, readString, readUnicode, setReader | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public JsonReader(Reader in)
in - the Reader to read from| Method Detail | 
|---|
public Map<String,Object> read()
                        throws IOException,
                               RecordIOException
RecordReader
read in interface RecordReaderIOException - if an I/O error occurs reading from the stream
RecordIOException - if the record is malformed and cannot
          be parsed, but subsequent reads may still be possible
public void close()
           throws IOException
RecordReader
close in interface RecordReaderIOException - if an I/O error occurs closing the streampublic int getRecordLineNumber()
RecordReader
getRecordLineNumber in interface RecordReaderpublic String getRecordText()
RecordReader
getRecordText in interface RecordReader
public static void main(String[] args)
                 throws Exception
Exception| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||