|
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.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 RecordWriter
record
- the record object to write
IOException
- if an I/O error occurs writing the record to the streampublic void flush() throws IOException
RecordWriter
flush
in interface RecordWriter
IOException
- if an I/O error occurs flushing the streampublic void close() throws IOException
RecordWriter
close
in interface RecordWriter
IOException
- 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 |