Class JsonFormat.PrettyTextGenerator

java.lang.Object
com.google.protobuf.util.JsonFormat.PrettyTextGenerator
All Implemented Interfaces:
JsonFormat.TextGenerator
Enclosing class:
JsonFormat

private static final class JsonFormat.PrettyTextGenerator extends Object implements JsonFormat.TextGenerator
A TextGenerator adds indentation when writing formatted text.
  • Field Details

    • output

      private final Appendable output
    • indent

      private final StringBuilder indent
    • atStartOfLine

      private boolean atStartOfLine
  • Constructor Details

    • PrettyTextGenerator

      private PrettyTextGenerator(Appendable output)
  • Method Details