Package org.bson.json
Class StrictCharacterStreamJsonWriterSettings
- java.lang.Object
-
- org.bson.json.StrictCharacterStreamJsonWriterSettings
-
@Deprecated(since="2022-10-31") public final class StrictCharacterStreamJsonWriterSettings extends java.lang.ObjectDeprecated.Usage of this API is not supported in AEM as a Cloud Service.Settings to control the behavior of aJSONWriterinstance.- Since:
- 3.5
- See Also:
StrictCharacterStreamJsonWriter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStrictCharacterStreamJsonWriterSettings.BuilderDeprecated.Usage of this API is not supported in AEM as a Cloud Service.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StrictCharacterStreamJsonWriterSettings.Builderbuilder()Deprecated.Create a builder for StrictCharacterStreamJsonWriterSettings, which are immutable.java.lang.StringgetIndentCharacters()Deprecated.The indent characters to use if indent mode is enabled.intgetMaxLength()Deprecated.The maximum length of the JSON string.java.lang.StringgetNewLineCharacters()Deprecated.The new line character(s) to use if indent mode is enabled.booleanisIndent()Deprecated.The indentation mode.
-
-
-
Method Detail
-
builder
public static StrictCharacterStreamJsonWriterSettings.Builder 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
public java.lang.String 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
public java.lang.String 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
-
-