Class ContentsJsonWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    public class ContentsJsonWriter
    extends JsonWriter
    Converts a ProcessResult object to a JSON formatted string.

    Created: 2008. 06. 12 PM 8:20:54

    • Constructor Detail

      • ContentsJsonWriter

        public ContentsJsonWriter​(java.io.Writer writer)
        Instantiates a new ContentsJsonWriter.
        Parameters:
        writer - a Writer object that can send character text
    • Method Detail

      • write

        public <T extends JsonWriter> T write​(java.lang.Object object)
                                       throws java.io.IOException
        Description copied from class: JsonWriter
        Writes an object to the writer.
        Overrides:
        write in class JsonWriter
        Parameters:
        object - the object to write to the writer.
        Throws:
        java.io.IOException - if an I/O error has occurred.
      • write

        public void write​(ProcessResult processResult)
                   throws java.io.IOException
        Write a ProcessResult object to the character-output stream.
        Parameters:
        processResult - the ProcessResult object to write to the writer
        Throws:
        java.io.IOException - if an I/O error has occurred