Package com.google.protobuf.util
Interface JsonFormat.TextGenerator
-
- All Known Implementing Classes:
JsonFormat.CompactTextGenerator,JsonFormat.PrettyTextGenerator
- Enclosing class:
- JsonFormat
static interface JsonFormat.TextGeneratorAn interface for JSON formatting that can be used in combination with the omittingInsignificantWhitespace() method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidindent()voidoutdent()voidprint(java.lang.CharSequence text)voidprintln()voidprintln(java.lang.CharSequence text)voidprintSubsequence(java.lang.CharSequence text, int start, int end)
-
-
-
Method Detail
-
indent
void indent()
-
outdent
void outdent()
-
print
void print(java.lang.CharSequence text) throws java.io.IOException- Throws:
java.io.IOException
-
printSubsequence
void printSubsequence(java.lang.CharSequence text, int start, int end) throws java.io.IOException- Throws:
java.io.IOException
-
println
void println() throws java.io.IOException- Throws:
java.io.IOException
-
println
void println(java.lang.CharSequence text) throws java.io.IOException- Throws:
java.io.IOException
-
-