com.github.dandelion.datatables.core.util
Class JsonIndentingWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.StringWriter
          extended by com.github.dandelion.datatables.core.util.JsonIndentingWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class JsonIndentingWriter
extends StringWriter

Custom writer that pretty prints a JSON object as a String.

Since:
28-Nov-2011
Version:
0.1
Author:
Elad Tabak

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
JsonIndentingWriter()
           
 
Method Summary
 void write(int c)
           
 
Methods inherited from class java.io.StringWriter
append, append, append, close, flush, getBuffer, toString, write, write, write
 
Methods inherited from class java.io.Writer
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonIndentingWriter

public JsonIndentingWriter()
Method Detail

write

public void write(int c)
Overrides:
write in class StringWriter


Copyright © 2013–2014 Dandelion Project. All rights reserved.