Package com.mongodb
Class LazyDBEncoder
java.lang.Object
com.mongodb.LazyDBEncoder
- All Implemented Interfaces:
DBEncoder
Encoder that only knows how to encode BSONObject instances of type LazyDBObject.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
writeObject
(OutputBuffer outputBuffer, BSONObject document) Encode the BSONObject.
-
Constructor Details
-
LazyDBEncoder
public LazyDBEncoder()
-
-
Method Details
-
writeObject
Description copied from interface:DBEncoder
Encode the BSONObject.- Specified by:
writeObject
in interfaceDBEncoder
- Parameters:
outputBuffer
- the OutputBuffer to write todocument
- the BSONObject to write- Returns:
- the number of characters in the encoding
-