Package org.bson.codecs
Interface Decoder<T>
- 
- Type Parameters:
 T- the type to decode into, the return type of thedecode(org.bson.BsonReader, DecoderContext)method.
- All Known Subinterfaces:
 Codec<T>,CollectibleCodec<T>
- All Known Implementing Classes:
 AtomicBooleanCodec,AtomicIntegerCodec,AtomicLongCodec,BigDecimalCodec,BinaryCodec,BooleanCodec,BsonArrayCodec,BsonBinaryCodec,BsonBooleanCodec,BsonCodec,BsonDateTimeCodec,BsonDBPointerCodec,BsonDecimal128Codec,BsonDocumentCodec,BsonDocumentWrapperCodec,BsonDoubleCodec,BsonInt32Codec,BsonInt64Codec,BsonJavaScriptCodec,BsonJavaScriptWithScopeCodec,BsonMaxKeyCodec,BsonMinKeyCodec,BsonNullCodec,BsonObjectIdCodec,BsonRegularExpressionCodec,BsonStringCodec,BsonSymbolCodec,BsonTimestampCodec,BSONTimestampCodec,BsonUndefinedCodec,BsonValueCodec,ByteArrayCodec,ByteCodec,CharacterCodec,CodeCodec,CodeWithScopeCodec,DateCodec,DBObjectCodec,DBRefCodec,Decimal128Codec,DocumentCodec,DoubleCodec,FloatCodec,GeometryCodec,GeometryCollectionCodec,GridFSFileCodec,IntegerCodec,IterableCodec,LineStringCodec,LongCodec,MapCodec,MaxKeyCodec,MinKeyCodec,MultiLineStringCodec,MultiPointCodec,MultiPolygonCodec,NamedCoordinateReferenceSystemCodec,ObjectIdCodec,OverridableUuidRepresentationUuidCodec,PatternCodec,PointCodec,PolygonCodec,RawBsonDocumentCodec,ShortCodec,StringCodec,SymbolCodec,UuidCodec
public interface Decoder<T>Decoders are used for reading BSON types from MongoDB and converting them into Java objects.- Since:
 - 3.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tdecode(BsonReader reader, DecoderContext decoderContext)Decodes a BSON value from the given reader into an instance of the type parameterT. 
 - 
 
- 
- 
Method Detail
- 
decode
T decode(BsonReader reader, DecoderContext decoderContext)
Decodes a BSON value from the given reader into an instance of the type parameterT.- Parameters:
 reader- the BSON readerdecoderContext- the decoder context- Returns:
 - an instance of the type parameter 
T. 
 
 - 
 
 -