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 java.lang.Object implements JsonFormat.TextGenerator
Format the JSON without indentation
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Appendableoutput
-
Constructor Summary
Constructors Modifier Constructor Description privateCompactTextGenerator(java.lang.Appendable output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidindent()ignored by compact printervoidoutdent()ignored by compact printervoidprint(java.lang.CharSequence text)Print text to the output stream.
-
-
-
Method Detail
-
indent
public void indent()
ignored by compact printer- Specified by:
indentin interfaceJsonFormat.TextGenerator
-
outdent
public void outdent()
ignored by compact printer- Specified by:
outdentin interfaceJsonFormat.TextGenerator
-
print
public void print(java.lang.CharSequence text) throws java.io.IOExceptionPrint text to the output stream.- Specified by:
printin interfaceJsonFormat.TextGenerator- Throws:
java.io.IOException
-
-