Constructor and Description |
---|
BsonArrayCodec()
Creates a new instance with a default codec registry that uses the
BsonValueCodecProvider . |
BsonArrayCodec(CodecRegistry codecRegistry)
Construct an instance with the given registry
|
Modifier and Type | Method and Description |
---|---|
BsonArray |
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,
BsonArray array,
EncoderContext encoderContext)
Encode an instance of the type parameter
T into a BSON value. |
java.lang.Class<BsonArray> |
getEncoderClass()
Returns the Class instance that this encodes.
|
public BsonArrayCodec()
BsonValueCodecProvider
.public BsonArrayCodec(CodecRegistry codecRegistry)
codecRegistry
- the codec registrypublic BsonArray decode(BsonReader reader, DecoderContext decoderContext)
Decoder
T
.public void encode(BsonWriter writer, BsonArray array, EncoderContext encoderContext)
Encoder
T
into a BSON value.public java.lang.Class<BsonArray> getEncoderClass()
Encoder
getEncoderClass
in interface Encoder<BsonArray>
Copyright © 2010 - 2020 Adobe. All Rights Reserved