public class PrettyTextJsonGenerator extends TextJsonGenerator
TextJsonGenerator except that
the output is formatted for improved readability.PRETTY_PRINTING| Constructor and Description |
|---|
PrettyTextJsonGenerator(OutputStream os) |
PrettyTextJsonGenerator(Writer out) |
| Modifier and Type | Method and Description |
|---|---|
void |
setIndentation(String indent)
Sets the indentation string.
|
JsonGenerator |
writeEnd() |
close, flush, getBinaryFormat, isKeyNameEscaped, setBinaryFormat, setKeyNameEscaped, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, writeNull, writeNull, writeStartArray, writeStartArray, writeStartObject, writeStartObjectpublic PrettyTextJsonGenerator(OutputStream os)
public PrettyTextJsonGenerator(Writer out)
public void setIndentation(String indent)
indent - the indentation stringpublic JsonGenerator writeEnd()
writeEnd in interface JsonGeneratorwriteEnd in class TextJsonGeneratorCopyright © 2016. All rights reserved.