| Constructor and Description |
|---|
AutomaticPojoCodec(PojoCodec<T> pojoCodec) |
| Modifier and Type | Method and Description |
|---|---|
T |
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,
T value,
EncoderContext encoderContext)
Encode an instance of the type parameter
T into a BSON value. |
(package private) ClassModel<T> |
getClassModel() |
java.lang.Class<T> |
getEncoderClass()
Returns the Class instance that this encodes.
|
public T decode(BsonReader reader, DecoderContext decoderContext)
DecoderT.reader - the BSON readerdecoderContext - the decoder contextT.public void encode(BsonWriter writer, T value, EncoderContext encoderContext)
EncoderT into a BSON value.writer - the BSON writer to encode intovalue - the value to encodeencoderContext - the encoder contextpublic java.lang.Class<T> getEncoderClass()
EncoderClassModel<T> getClassModel()
getClassModel in class PojoCodec<T>