DBEncoder, BSONEncoderpublic class DefaultDBEncoder extends BasicBSONEncoder implements DBEncoder
| Modifier and Type | Field | Description |
|---|---|---|
static DBEncoderFactory |
FACTORY |
| Constructor | Description |
|---|---|
DefaultDBEncoder() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
putDBRef(String name,
DBRef ref) |
Deals with encoding database references.
|
protected boolean |
putSpecial(String name,
Object value) |
Special values are not encoded into documents.
|
String |
toString() |
|
int |
writeObject(OutputBuffer outputBuffer,
BSONObject document) |
Encode the BSONObject.
|
_putObjectField, done, encode, getBsonWriter, getOutputBuffer, putArray, putBinary, putBinary, putBoolean, putCode, putCodeWScope, putDate, putDecimal128, 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 in interface DBEncoderoutputBuffer - the OutputBuffer to write todocument - the BSONObject to writeprotected boolean putSpecial(String name, Object value)
BasicBSONEncoderputSpecial in class BasicBSONEncodername - the field namevalue - the valueprotected void putDBRef(String name, DBRef ref)
name - the name of the field in the documentref - the database reference object