Class JsonWriter

    • Constructor Detail

      • JsonWriter

        public JsonWriter​(java.io.Writer out)
        Constructs a new JsonWriter.
        Parameters:
        out -
      • JsonWriter

        public JsonWriter​(java.io.Writer out,
                          JsonParserConfiguration config)
        Constructs a new JsonWriter.
        Parameters:
        out -
    • Method Detail

      • write

        public void write​(java.lang.Object record)
                   throws java.io.IOException
        Description copied from interface: RecordWriter
        Writes a record object to this output stream.
        Specified by:
        write in interface RecordWriter
        Parameters:
        record - the record object to write
        Throws:
        java.io.IOException - if an I/O error occurs writing the record to the stream
      • flush

        public void flush()
                   throws java.io.IOException
        Description copied from interface: RecordWriter
        Flushes the output stream.
        Specified by:
        flush in interface RecordWriter
        Throws:
        java.io.IOException - if an I/O error occurs flushing the stream
      • close

        public void close()
                   throws java.io.IOException
        Description copied from interface: RecordWriter
        Closes the output stream.
        Specified by:
        close in interface RecordWriter
        Throws:
        java.io.IOException - if an I/O error occurs closing the stream