public class DefaultDBEncoder extends BasicBSONEncoder implements DBEncoder
Modifier and Type | Field and Description |
---|---|
static DBEncoderFactory |
FACTORY |
_buf
Constructor and Description |
---|
DefaultDBEncoder() |
Modifier and Type | Method and Description |
---|---|
protected void |
putDBPointer(String name,
String ns,
ObjectId oid)
Deprecated.
Please see
DBPointer .
You can override putDBRef(String, DBRefBase) if you need
a specific behaviour while decoding database references. |
protected void |
putDBRef(String name,
DBRefBase ref) |
protected boolean |
putSpecial(String name,
Object val) |
String |
toString() |
int |
writeObject(OutputBuffer buf,
BSONObject o) |
_put, _put, _putObjectField, _putValueString, done, encode, getOutputBuffer, handleSpecialObjects, putBinary, putBinary, putBoolean, putCode, putCodeWScope, putDate, putNull, putNumber, putObject, putObject, putObjectId, putString, putSymbol, putTimestamp, putUndefined, putUUID, set, writeCString, writeInt, writeLong
public static DBEncoderFactory FACTORY
public int writeObject(OutputBuffer buf, BSONObject o)
writeObject
in interface DBEncoder
protected boolean putSpecial(String name, Object val)
putSpecial
in class BasicBSONEncoder
@Deprecated protected void putDBPointer(String name, String ns, ObjectId oid)
DBPointer
.
You can override putDBRef(String, DBRefBase)
if you need
a specific behaviour while decoding database references.