Package org.bson

Class BsonBinaryWriterSettings


  • public class BsonBinaryWriterSettings
    extends java.lang.Object
    The customisable settings for writing BSON.
    Since:
    3.0
    • Constructor Summary

      Constructors 
      Constructor Description
      BsonBinaryWriterSettings()
      Creates a new instance of the settings with Integer.MAX_VALUE as the maximum document size.
      BsonBinaryWriterSettings​(int maxDocumentSize)
      Creates a new instance of the settings with the given maximum document size.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getMaxDocumentSize()
      Gets the maximum size for BSON documents.
      • Methods inherited from class java.lang.Object

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

      • BsonBinaryWriterSettings

        public BsonBinaryWriterSettings​(int maxDocumentSize)
        Creates a new instance of the settings with the given maximum document size.
        Parameters:
        maxDocumentSize - the maximum document size.
      • BsonBinaryWriterSettings

        public BsonBinaryWriterSettings()
        Creates a new instance of the settings with Integer.MAX_VALUE as the maximum document size.
    • Method Detail

      • getMaxDocumentSize

        public int getMaxDocumentSize()
        Gets the maximum size for BSON documents.
        Returns:
        the maximum size of BSON documents. ???