Package com.mongodb

Class LazyDBEncoder

  • All Implemented Interfaces:

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

      • LazyDBEncoder

        public LazyDBEncoder​()
    • Method Detail

      • writeObject

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