Class JsonWriter

java.lang.Object
org.spockframework.util.JsonWriter

public class JsonWriter extends Object
Note: The writeString(java.lang.Object) and hex(char) methods are based on code from class StringEscapeUtils in Commons Lang 2.6.
  • Constructor Details

    • JsonWriter

      public JsonWriter(Writer out)
  • Method Details

    • isPrettyPrint

      public boolean isPrettyPrint()
    • setPrettyPrint

      public void setPrettyPrint(boolean prettyPrint)
    • getIndent

      public String getIndent()
    • setIndent

      public void setIndent(String indent)
    • write

      public void write(Object object) throws IOException
      Throws:
      IOException