|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.web.json.JSONWriter org.codehaus.groovy.grails.web.json.PrettyPrintJSONWriter
public class PrettyPrintJSONWriter extends JSONWriter
A JSONWriter dedicated to create indented/pretty printed output.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_INDENT_STR
|
static java.lang.String |
NEWLINE
|
Fields inherited from class JSONWriter | |
---|---|
comma, mode, writer |
Constructor Summary | |
PrettyPrintJSONWriter(java.io.Writer w)
|
|
PrettyPrintJSONWriter(java.io.Writer w, java.lang.String indentStr)
|
Method Summary | |
---|---|
protected JSONWriter
|
append(java.lang.String s)
|
JSONWriter
|
array()
|
protected JSONWriter
|
end(Mode m, char c)
|
JSONWriter
|
endArray()
|
JSONWriter
|
endObject()
|
JSONWriter
|
key(java.lang.String s)
|
JSONWriter
|
object()
|
Methods inherited from class JSONWriter | |
---|---|
append, array, comma, end, endArray, endObject, key, object, pop, push, value, value, value, value |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final java.lang.String DEFAULT_INDENT_STR
public static final java.lang.String NEWLINE
Constructor Detail |
---|
public PrettyPrintJSONWriter(java.io.Writer w)
public PrettyPrintJSONWriter(java.io.Writer w, java.lang.String indentStr)
Method Detail |
---|
@Override protected JSONWriter append(java.lang.String s)
@Override public JSONWriter array()
@Override protected JSONWriter end(Mode m, char c)
@Override public JSONWriter endArray()
@Override public JSONWriter endObject()
@Override public JSONWriter key(java.lang.String s)
@Override public JSONWriter object()
Groovy Documentation