public static final class StrictCharacterStreamJsonWriterSettings.Builder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
indent |
private java.lang.String |
indentCharacters |
private java.lang.String |
newLineCharacters |
Modifier | Constructor and Description |
---|---|
private |
Builder() |
Modifier and Type | Method and Description |
---|---|
StrictCharacterStreamJsonWriterSettings |
build()
Build a JsonWriterSettings instance.
|
StrictCharacterStreamJsonWriterSettings.Builder |
indent(boolean indent)
Sets whether indentation is enabled.
|
StrictCharacterStreamJsonWriterSettings.Builder |
indentCharacters(java.lang.String indentCharacters)
Sets the indent character string to use when indentation is enabled.
|
StrictCharacterStreamJsonWriterSettings.Builder |
newLineCharacters(java.lang.String newLineCharacters)
Sets the new line character string to use when indentation is enabled.
|
private boolean indent
private java.lang.String newLineCharacters
private java.lang.String indentCharacters
public StrictCharacterStreamJsonWriterSettings build()
public StrictCharacterStreamJsonWriterSettings.Builder indent(boolean indent)
indent
- whether indentation is enabledpublic StrictCharacterStreamJsonWriterSettings.Builder newLineCharacters(java.lang.String newLineCharacters)
newLineCharacters
- the non-null new line character stringpublic StrictCharacterStreamJsonWriterSettings.Builder indentCharacters(java.lang.String indentCharacters)
indentCharacters
- the non-null indent character string