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
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Decoders are used for reading BSON types from MongoDB and converting them into Java objects.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptiondecode(BsonReader reader, DecoderContext decoderContext) Deprecated.Decodes a BSON value from the given reader into an instance of the type parameterT.
-
Method Details
-
decode
Deprecated.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.
-