public class DefaultDBEncoder extends BasicBSONEncoder implements DBEncoder
| 限定符和类型 | 字段和说明 |
|---|---|
static DBEncoderFactory |
FACTORY |
| 构造器和说明 |
|---|
DefaultDBEncoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
putDBRef(java.lang.String name,
DBRef ref)
Deals with encoding database references.
|
protected boolean |
putSpecial(java.lang.String name,
java.lang.Object value)
Special values are not encoded into documents.
|
java.lang.String |
toString() |
int |
writeObject(OutputBuffer outputBuffer,
BSONObject document)
Encode the BSONObject.
|
_putObjectField, done, encode, getBsonWriter, getOutputBuffer, putArray, putBinary, putBinary, putBoolean, putCode, putCodeWScope, putDate, putIterable, putMap, putMaxKey, putMinKey, putName, putNull, putNumber, putObject, putObject, putObjectId, putPattern, putString, putSymbol, putTimestamp, putUndefined, putUUID, setpublic static final DBEncoderFactory FACTORY
public int writeObject(OutputBuffer outputBuffer, BSONObject document)
DBEncoderwriteObject 在接口中 DBEncoderoutputBuffer - the OutputBuffer to write todocument - the BSONObject to writeprotected boolean putSpecial(java.lang.String name,
java.lang.Object value)
BasicBSONEncoderputSpecial 在类中 BasicBSONEncodername - the field namevalue - the valueprotected void putDBRef(java.lang.String name,
DBRef ref)
name - the name of the field in the documentref - the database reference objectpublic java.lang.String toString()
toString 在类中 java.lang.Object