public class PrettyPrint extends WriterConfig
jsonValue.writeTo(writer, PrettyPrint.singleLine());
MINIMAL, PRETTY_PRINT| Modifier | Constructor and Description |
|---|---|
protected |
PrettyPrint(char[] indentChars) |
| Modifier and Type | Method and Description |
|---|---|
protected com.bettercloud.vault.json.JsonWriter |
createWriter(java.io.Writer writer) |
static PrettyPrint |
indentWithSpaces(int number)
Print every value on a separate line.
|
static PrettyPrint |
indentWithTabs()
Do not break lines, but still insert whitespace between values.
|
static PrettyPrint |
singleLine()
Print every value on a separate line.
|
public static PrettyPrint singleLine()
\t) for indentation.public static PrettyPrint indentWithSpaces(int number)
number - the number of spaces to usepublic static PrettyPrint indentWithTabs()
protected com.bettercloud.vault.json.JsonWriter createWriter(java.io.Writer writer)