Package org.bson
Class BsonWriterSettings
- java.lang.Object
 - 
- org.bson.BsonWriterSettings
 
 
- 
- Direct Known Subclasses:
 JsonWriterSettings
public class BsonWriterSettings extends Object
All the customisable settings for writing BSON.- Since:
 - 3.0
 
 
- 
- 
Constructor Summary
Constructors Constructor Description BsonWriterSettings()Creates a new instance of the settings with the default maximum serialization depth of 1024.BsonWriterSettings(int maxSerializationDepth)Creates a new instance of the settings with the given maximum serialization depth. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxSerializationDepth()Gets the maximum nuber of levels of depth defined by this settings object. 
 - 
 
- 
- 
Constructor Detail
- 
BsonWriterSettings
public BsonWriterSettings(int maxSerializationDepth)
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()
Creates a new instance of the settings with the default maximum serialization depth of 1024. 
 - 
 
 -