Constructor and Description |
---|
CommandResultArrayCodec(CodecRegistry registry,
Decoder<T> decoder) |
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 . |
protected BsonValue |
readValue(BsonReader reader,
DecoderContext decoderContext)
This method may be overridden to change the behavior of reading the current value from the given
BsonReader . |
encode, getEncoderClass
CommandResultArrayCodec(CodecRegistry registry, Decoder<T> decoder)
public BsonArray decode(BsonReader reader, DecoderContext decoderContext)
Decoder
T
.decode
in interface Decoder<BsonArray>
decode
in class BsonArrayCodec
reader
- the BSON readerdecoderContext
- the decoder contextT
.protected BsonValue readValue(BsonReader reader, DecoderContext decoderContext)
BsonArrayCodec
BsonReader
. It is required
that the value be fully consumed before returning.readValue
in class BsonArrayCodec
reader
- the read to read the value fromdecoderContext
- the decoder context