Package com.mongodb

Interface DBEncoder

All Known Implementing Classes:
DefaultDBEncoder, LazyDBEncoder

public interface DBEncoder
An interface for encoders of BSONObject to BSON.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    writeObject(OutputBuffer outputBuffer, BSONObject document)
    Encode the BSONObject.
  • Method Details

    • writeObject

      int writeObject(OutputBuffer outputBuffer, BSONObject document)
      Encode the BSONObject.
      Parameters:
      outputBuffer - the OutputBuffer to write to
      document - the BSONObject to write
      Returns:
      the number of characters in the encoding