Package com.mongodb
Interface DBEncoder
-
- All Known Implementing Classes:
DefaultDBEncoder,LazyDBEncoder
public interface DBEncoderAn interface for encoders of BSONObject to BSON.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intwriteObject(OutputBuffer outputBuffer, BSONObject document)Encode the BSONObject.
-
-
-
Method Detail
-
writeObject
int writeObject(OutputBuffer outputBuffer, BSONObject document)
Encode the BSONObject.- Parameters:
outputBuffer- the OutputBuffer to write todocument- the BSONObject to write- Returns:
- the number of characters in the encoding
-
-