public static final class StrictCharacterStreamJsonWriterSettings.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
StrictCharacterStreamJsonWriterSettings |
build() |
Build a JsonWriterSettings instance.
|
StrictCharacterStreamJsonWriterSettings.Builder |
indent(boolean indent) |
Sets whether indentation is enabled.
|
StrictCharacterStreamJsonWriterSettings.Builder |
indentCharacters(String indentCharacters) |
Sets the indent character string to use when indentation is enabled.
|
StrictCharacterStreamJsonWriterSettings.Builder |
maxLength(int maxLength) |
Sets the maximum length of the JSON string.
|
StrictCharacterStreamJsonWriterSettings.Builder |
newLineCharacters(String newLineCharacters) |
Sets the new line character string to use when indentation is enabled.
|
public StrictCharacterStreamJsonWriterSettings build()
public StrictCharacterStreamJsonWriterSettings.Builder indent(boolean indent)
indent - whether indentation is enabledpublic StrictCharacterStreamJsonWriterSettings.Builder newLineCharacters(String newLineCharacters)
newLineCharacters - the non-null new line character stringpublic StrictCharacterStreamJsonWriterSettings.Builder indentCharacters(String indentCharacters)
indentCharacters - the non-null indent character stringpublic StrictCharacterStreamJsonWriterSettings.Builder maxLength(int maxLength)
maxLength - the maximum length, which must be >= 0 where 0 indicate no maximum length