| 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, getEncoderClassCommandResultArrayCodec(CodecRegistry registry, Decoder<T> decoder)
public BsonArray decode(BsonReader reader, DecoderContext decoderContext)
DecoderT.decode in interface Decoder<BsonArray>decode in class BsonArrayCodecreader - the BSON readerdecoderContext - the decoder contextT.protected BsonValue readValue(BsonReader reader, DecoderContext decoderContext)
BsonArrayCodecBsonReader. It is required
that the value be fully consumed before returning.readValue in class BsonArrayCodecreader - the read to read the value fromdecoderContext - the decoder context