protected static class JsonFormat.JsonGenerator extends Object
Constructor and Description |
---|
JsonGenerator(Appendable output) |
Modifier and Type | Method and Description |
---|---|
void |
indent()
Indent text by two spaces.
|
void |
outdent()
Reduces the current indent level by two spaces, or crashes if the indent level is zero.
|
void |
print(CharSequence text)
Print text to the output stream.
|
public JsonGenerator(Appendable output)
public void indent()
public void outdent()
public void print(CharSequence text) throws IOException
IOException
Copyright © 2016. All rights reserved.