| 
 | 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.JsonParserConfiguration
org.beanio.stream.json.JsonRecordParserFactory
public class JsonRecordParserFactory
A RecordParserFactory for JSON formatted streams.
 
 
Record objects are stored using a Map.  A map may contain List
 values for a JSON array, another Map for a JSON object, or the simple 
 types String, Number, Boolean or null.
| Constructor Summary | |
|---|---|
| JsonRecordParserFactory()Constructs a new JsonRecordParserFactory. | |
| Method Summary | |
|---|---|
|  RecordMarshaller | createMarshaller()Creates a parser for marshalling records. | 
|  RecordReader | createReader(Reader in)Creates a parser for reading records from an input stream. | 
|  RecordUnmarshaller | createUnmarshaller()Creates a parser for unmarshalling records. | 
|  RecordWriter | createWriter(Writer out)Creates a parser for writing records to an output stream. | 
|  void | init()Initializes the factory. | 
| Methods inherited from class org.beanio.stream.json.JsonParserConfiguration | 
|---|
| getIndentation, getLineSeparator, isPretty, setIndentation, setLineSeparator, setPretty | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public JsonRecordParserFactory()
| Method Detail | 
|---|
public void init()
          throws IllegalArgumentException
RecordParserFactory
init in interface RecordParserFactoryIllegalArgumentException - if the parser configuration is invalid
public RecordReader createReader(Reader in)
                          throws IllegalArgumentException
RecordParserFactory
createReader in interface RecordParserFactoryin - the input stream to read from
RecordReader
IllegalArgumentException - if this factory is improperly configured
   and a RecordReader cannot be created
public RecordWriter createWriter(Writer out)
                          throws IllegalArgumentException
RecordParserFactory
createWriter in interface RecordParserFactoryout - the output stream to write to
RecordWriter
IllegalArgumentException - if this factory is improperly configured
   and a RecordWriter cannot be created
public RecordMarshaller createMarshaller()
                                  throws IllegalArgumentException
RecordParserFactory
createMarshaller in interface RecordParserFactoryRecordMarshaller
IllegalArgumentException - if this factory is improperly configured and
   a RecordMarshaller cannot be created
public RecordUnmarshaller createUnmarshaller()
                                      throws IllegalArgumentException
RecordParserFactory
createUnmarshaller in interface RecordParserFactoryRecordUnmarshaller
IllegalArgumentException - if this factory is improperly configured and
   a RecordUnmarshaller cannot be created| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||