Class ContentsJsonWriter

  • All Implemented Interfaces:
    java.io.Flushable

    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
      • ContentsJsonWriter

        public ContentsJsonWriter​(java.io.Writer writer,
                                  boolean prettyPrint)
        Instantiates a new ContentsJsonWriter.
        Parameters:
        writer - a Writer object that can send character text
        prettyPrint - enables or disables pretty-printing
      • ContentsJsonWriter

        public ContentsJsonWriter​(java.io.Writer writer,
                                  java.lang.String indentString)
        Instantiates a new ContentsJsonWriter.
        Parameters:
        writer - a Writer object that can send character text
        indentString - the string that should be used for indentation when pretty-printing is enabled
    • Method Detail

      • write

        public ContentsJsonWriter write​(java.lang.Object object)
                                 throws java.io.IOException,
                                        java.lang.reflect.InvocationTargetException
        Description copied from class: JsonWriter
        Write an object to a character stream.
        Overrides:
        write in class JsonWriter
        Parameters:
        object - the object to write to a character-output stream.
        Returns:
        this JsonWriter
        Throws:
        java.io.IOException - an I/O error occurs.
        java.lang.reflect.InvocationTargetException - the invocation target exception