Modifier and Type | Field and Description |
---|---|
private Decoder<DBObject> |
decoder |
private Encoder<DBObject> |
encoder |
Constructor and Description |
---|
CompoundDBObjectCodec(Codec<DBObject> codec) |
CompoundDBObjectCodec(Encoder<DBObject> encoder,
Decoder<DBObject> decoder) |
Modifier and Type | Method and Description |
---|---|
DBObject |
decode(BsonReader reader,
DecoderContext decoderContext)
Decodes a BSON value from the given reader into an instance of the type parameter
T . |
void |
encode(BsonWriter writer,
DBObject value,
EncoderContext encoderContext)
Encode an instance of the type parameter
T into a BSON value. |
Decoder<DBObject> |
getDecoder() |
Encoder<DBObject> |
getEncoder() |
java.lang.Class<DBObject> |
getEncoderClass()
Returns the Class instance that this encodes.
|
public CompoundDBObjectCodec(Encoder<DBObject> encoder, Decoder<DBObject> decoder)
public DBObject decode(BsonReader reader, DecoderContext decoderContext)
Decoder
T
.public void encode(BsonWriter writer, DBObject value, EncoderContext encoderContext)
Encoder
T
into a BSON value.public java.lang.Class<DBObject> getEncoderClass()
Encoder
getEncoderClass
in interface Encoder<DBObject>