Package com.mongodb

Class LazyDBEncoder

  • All Implemented Interfaces:
    DBEncoder


    public class LazyDBEncoder
    extends java.lang.Object
    implements DBEncoder
    Encoder that only knows how to encode BSONObject instances of type LazyDBObject.
    • Constructor Summary

      Constructors 
      Constructor Description
      LazyDBEncoder​()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int writeObject​(org.bson.io.OutputBuffer outputBuffer, org.bson.BSONObject document)
      Encode the BSONObject.
      • Methods inherited from class java.lang.Object

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

      • LazyDBEncoder

        public LazyDBEncoder​()
    • Method Detail

      • writeObject

        public int writeObject​(org.bson.io.OutputBuffer outputBuffer,
                               org.bson.BSONObject document)
        Description copied from interface: DBEncoder
        Encode the BSONObject.
        Specified by:
        writeObject in interface DBEncoder
        Parameters:
        outputBuffer - the OutputBuffer to write to
        document - the BSONObject to write
        Returns:
        the number of characters in the encoding