Package org.bson.codecs
Class BsonCodec
- java.lang.Object
-
- org.bson.codecs.BsonCodec
-
-
Constructor Summary
Constructors Constructor Description BsonCodec(CodecRegistry registry)Deprecated.Create a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Bsondecode(BsonReader reader, DecoderContext decoderContext)Deprecated.Decodes a BSON value from the given reader into an instance of the type parameterT.voidencode(BsonWriter writer, Bson value, EncoderContext encoderContext)Deprecated.Encode an instance of the type parameterTinto a BSON value.java.lang.Class<Bson>getEncoderClass()Deprecated.Returns the Class instance that this encodes.
-
-
-
Constructor Detail
-
BsonCodec
public BsonCodec(CodecRegistry registry)
Deprecated.Create a new instance- Parameters:
registry- the codec registry
-
-
Method Detail
-
decode
public Bson decode(BsonReader reader, DecoderContext decoderContext)
Deprecated.Description copied from interface:DecoderDecodes a BSON value from the given reader into an instance of the type parameterT.
-
encode
public void encode(BsonWriter writer, Bson value, EncoderContext encoderContext)
Deprecated.Description copied from interface:EncoderEncode an instance of the type parameterTinto a BSON value.
-
getEncoderClass
public java.lang.Class<Bson> getEncoderClass()
Deprecated.Description copied from interface:EncoderReturns the Class instance that this encodes. This is necessary because Java does not reify generic types.- Specified by:
getEncoderClassin interfaceEncoder<Bson>- Returns:
- the Class instance that this encodes.
-
-