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
,BsonUndefinedCodec
,BsonValueCodec
,ByteArrayCodec
,ByteCodec
,CharacterCodec
,CodeCodec
,CodeWithScopeCodec
,DateCodec
,Decimal128Codec
,DocumentCodec
,DoubleCodec
,FloatCodec
,InstantCodec
,IntegerCodec
,IterableCodec
,LocalDateCodec
,LocalDateTimeCodec
,LocalTimeCodec
,LongCodec
,MapCodec
,MaxKeyCodec
,MinKeyCodec
,ObjectIdCodec
,OverridableUuidRepresentationUuidCodec
,PatternCodec
,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 T
decode(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
.
-
-