@Override public void doWriteString(final String value) { bsonOutput.writeByte(BsonType.STRING.getValue()); writeCurrentName(); bsonOutput.writeString(value); }
@Override protected void doWriteJavaScript(final String value) { bsonOutput.writeByte(BsonType.JAVASCRIPT.getValue()); writeCurrentName(); bsonOutput.writeString(value); }
@Override public void doWriteSymbol(final String value) { bsonOutput.writeByte(BsonType.SYMBOL.getValue()); writeCurrentName(); bsonOutput.writeString(value); }
@Override protected void doWriteDBPointer(final BsonDbPointer value) { bsonOutput.writeByte(BsonType.DB_POINTER.getValue()); writeCurrentName(); bsonOutput.writeString(value.getNamespace()); bsonOutput.writeBytes(value.getId().toByteArray()); }
@Override protected void doWriteJavaScriptWithScope(final String value) { bsonOutput.writeByte(BsonType.JAVASCRIPT_WITH_SCOPE.getValue()); writeCurrentName(); setContext(new Context(getContext(), BsonContextType.JAVASCRIPT_WITH_SCOPE, bsonOutput.getPosition())); bsonOutput.writeInt32(0); bsonOutput.writeString(value); }