| Constructor and Description |
|---|
BsonCodec(CodecRegistry registry)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
Bson |
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,
Bson value,
EncoderContext encoderContext)
Encode an instance of the type parameter
T into a BSON value. |
java.lang.Class<Bson> |
getEncoderClass()
Returns the Class instance that this encodes.
|
public BsonCodec(CodecRegistry registry)
registry - the codec registrypublic Bson decode(BsonReader reader, DecoderContext decoderContext)
DecoderT.public void encode(BsonWriter writer, Bson value, EncoderContext encoderContext)
EncoderT into a BSON value.public java.lang.Class<Bson> getEncoderClass()
EncodergetEncoderClass in interface Encoder<Bson>Copyright © 2010 - 2023 Adobe. All Rights Reserved