Interface JsonFormat.TextGenerator
- All Known Implementing Classes:
JsonFormat.CompactTextGenerator, JsonFormat.PrettyTextGenerator
- Enclosing class:
JsonFormat
static interface JsonFormat.TextGenerator
An interface for JSON formatting that can be used in combination with the
omittingInsignificantWhitespace() method.
-
Method Summary
Modifier and TypeMethodDescriptionvoidindent()voidoutdent()voidprint(CharSequence text) voidprintln()voidprintln(CharSequence text) voidprintSubsequence(CharSequence text, int start, int end)
-
Method Details
-
indent
void indent() -
outdent
void outdent() -
print
- Throws:
IOException
-
printSubsequence
- Throws:
IOException
-
println
- Throws:
IOException
-
println
- Throws:
IOException
-