Package org.bson.json
Class StrictCharacterStreamJsonWriterSettings.Builder
- java.lang.Object
-
- org.bson.json.StrictCharacterStreamJsonWriterSettings.Builder
-
- Enclosing class:
- StrictCharacterStreamJsonWriterSettings
@Deprecated(since="2022-10-31") public static final class StrictCharacterStreamJsonWriterSettings.Builder extends java.lang.Object
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.A builder for StrictCharacterStreamJsonWriterSettings- Since:
- 3.4
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StrictCharacterStreamJsonWriterSettings
build()
Deprecated.Build a JsonWriterSettings instance.StrictCharacterStreamJsonWriterSettings.Builder
indent(boolean indent)
Deprecated.Sets whether indentation is enabled.StrictCharacterStreamJsonWriterSettings.Builder
indentCharacters(java.lang.String indentCharacters)
Deprecated.Sets the indent character string to use when indentation is enabled.StrictCharacterStreamJsonWriterSettings.Builder
maxLength(int maxLength)
Deprecated.Sets the maximum length of the JSON string.StrictCharacterStreamJsonWriterSettings.Builder
newLineCharacters(java.lang.String newLineCharacters)
Deprecated.Sets the new line character string to use when indentation is enabled.
-
-
-
Method Detail
-
build
public StrictCharacterStreamJsonWriterSettings build()
Deprecated.Build a JsonWriterSettings instance.- Returns:
- a JsonWriterSettings instance
-
indent
public StrictCharacterStreamJsonWriterSettings.Builder indent(boolean indent)
Deprecated.Sets whether indentation is enabled.- Parameters:
indent
- whether indentation is enabled- Returns:
- this
-
newLineCharacters
public StrictCharacterStreamJsonWriterSettings.Builder newLineCharacters(java.lang.String newLineCharacters)
Deprecated.Sets the new line character string to use when indentation is enabled.- Parameters:
newLineCharacters
- the non-null new line character string- Returns:
- this
-
indentCharacters
public StrictCharacterStreamJsonWriterSettings.Builder indentCharacters(java.lang.String indentCharacters)
Deprecated.Sets the indent character string to use when indentation is enabled.- Parameters:
indentCharacters
- the non-null indent character string- Returns:
- this
-
maxLength
public StrictCharacterStreamJsonWriterSettings.Builder maxLength(int maxLength)
Deprecated.Sets the maximum length of the JSON string. The string will be truncated at this length.- Parameters:
maxLength
- the maximum length, which must be >= 0 where 0 indicate no maximum length- Returns:
- the maximum length of the JSON string
- Since:
- 3.7
-
-