| 
 | 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.JsonWriterSupport
org.beanio.stream.json.JsonWriter
public class JsonWriter
A RecordWriter implementation for writing JSON formatted record.
JsonRecordParserFactory| Constructor Summary | |
|---|---|
| JsonWriter(Writer out)Constructs a new JsonWriter. | |
| JsonWriter(Writer out,
           JsonParserConfiguration config)Constructs a new JsonWriter. | |
| Method Summary | |
|---|---|
|  void | close()Closes the output stream. | 
|  void | flush()Flushes the output stream. | 
|  void | write(Object record)Writes a record object to this output stream. | 
| Methods inherited from class org.beanio.stream.json.JsonWriterSupport | 
|---|
| getIndent, getLineSeparator, init, isPretty, write, writeArray, writeString, writeValue | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public JsonWriter(Writer out)
out - 
public JsonWriter(Writer out,
                  JsonParserConfiguration config)
out - | Method Detail | 
|---|
public void write(Object record)
           throws IOException
RecordWriter
write in interface RecordWriterrecord - the record object to write
IOException - if an I/O error occurs writing the record to the stream
public void flush()
           throws IOException
RecordWriter
flush in interface RecordWriterIOException - if an I/O error occurs flushing the stream
public void close()
           throws IOException
RecordWriter
close in interface RecordWriterIOException - if an I/O error occurs closing the stream| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||