Package com.google.protobuf.util
Class JsonFormat.CompactTextGenerator
java.lang.Object
com.google.protobuf.util.JsonFormat.CompactTextGenerator
- All Implemented Interfaces:
JsonFormat.TextGenerator
- Enclosing class:
JsonFormat
private static final class JsonFormat.CompactTextGenerator
extends Object
implements JsonFormat.TextGenerator
Format the json without indentation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
indent()
ignored by compact printervoid
outdent()
ignored by compact printervoid
print
(CharSequence text) Print text to the output stream.
-
Field Details
-
output
-
-
Constructor Details
-
CompactTextGenerator
-
-
Method Details
-
indent
public void indent()ignored by compact printer- Specified by:
indent
in interfaceJsonFormat.TextGenerator
-
outdent
public void outdent()ignored by compact printer- Specified by:
outdent
in interfaceJsonFormat.TextGenerator
-
print
Print text to the output stream.- Specified by:
print
in interfaceJsonFormat.TextGenerator
- Throws:
IOException
-