| 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  Tinto a BSON value. | 
| Class<BsonArray> | getEncoderClass()Returns the Class instance that this encodes. | 
| 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. | 
public BsonArrayCodec()
BsonValueCodecProvider.public BsonArrayCodec(CodecRegistry codecRegistry)
codecRegistry - the codec registrypublic BsonArray decode(BsonReader reader, DecoderContext decoderContext)
DecoderT.public void encode(BsonWriter writer, BsonArray array, EncoderContext encoderContext)
EncoderT into a BSON value.public Class<BsonArray> getEncoderClass()
EncodergetEncoderClass in interface Encoder<BsonArray>protected BsonValue readValue(BsonReader reader, DecoderContext decoderContext)
BsonReader.  It is required
 that the value be fully consumed before returning.reader - the read to read the value fromdecoderContext - the decoder context