Package org.bson.json
Class StrictCharacterStreamJsonWriterSettings
java.lang.Object
org.bson.json.StrictCharacterStreamJsonWriterSettings
@Deprecated(since="2022-10-31")
public final class StrictCharacterStreamJsonWriterSettings
extends Object
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Settings to control the behavior of a
JSONWriter instance.- Since:
- 3.5
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated.Usage of this API is not supported in AEM as a Cloud Service. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Deprecated.Create a builder for StrictCharacterStreamJsonWriterSettings, which are immutable.Deprecated.The indent characters to use if indent mode is enabled.intDeprecated.The maximum length of the JSON string.Deprecated.The new line character(s) to use if indent mode is enabled.booleanisIndent()Deprecated.The indentation mode.
-
Method Details
-
builder
Deprecated.Create a builder for StrictCharacterStreamJsonWriterSettings, which are immutable.- Returns:
- a Builder instance
-
isIndent
public boolean isIndent()Deprecated.The indentation mode. If true, output will be indented. Otherwise, it will all be on the same line. The default value isfalse.- Returns:
- whether output should be indented.
-
getNewLineCharacters
Deprecated.The new line character(s) to use if indent mode is enabled. The default value isSystem.getProperty("line.separator").- Returns:
- the new line character(s) to use.
-
getIndentCharacters
Deprecated.The indent characters to use if indent mode is enabled. The default value is two spaces.- Returns:
- the indent character(s) to use.
-
getMaxLength
public int getMaxLength()Deprecated.The maximum length of the JSON string. The string will be truncated at this length.- Returns:
- the maximum length of the JSON string
- Since:
- 3.7
-