Package org.bson

Class BsonWriterSettings

java.lang.Object
org.bson.BsonWriterSettings
Direct Known Subclasses:
JsonWriterSettings

@Deprecated(since="2022-10-31") public class BsonWriterSettings extends Object
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
All the customisable settings for writing BSON.
Since:
3.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Creates a new instance of the settings with the default maximum serialization depth of 1024.
    BsonWriterSettings(int maxSerializationDepth)
    Deprecated.
    Creates a new instance of the settings with the given maximum serialization depth.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Deprecated.
    Gets the maximum nuber of levels of depth defined by this settings object.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BsonWriterSettings

      public BsonWriterSettings(int maxSerializationDepth)
      Deprecated.
      Creates a new instance of the settings with the given maximum serialization depth.
      Parameters:
      maxSerializationDepth - the maximum number of nested levels to serialise
    • BsonWriterSettings

      public BsonWriterSettings()
      Deprecated.
      Creates a new instance of the settings with the default maximum serialization depth of 1024.
  • Method Details

    • getMaxSerializationDepth

      public int getMaxSerializationDepth()
      Deprecated.
      Gets the maximum nuber of levels of depth defined by this settings object.
      Returns:
      the maximum number of levels that can be serialized.