Interface Decoder<T>

Type Parameters:
T - the type to decode into, the return type of the decode(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(since="2022-10-31") public interface Decoder<T>
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 Type
    Method
    Description
    decode(BsonReader reader, DecoderContext decoderContext)
    Deprecated.
    Decodes a BSON value from the given reader into an instance of the type parameter T.
  • Method Details

    • decode

      T decode(BsonReader reader, DecoderContext decoderContext)
      Deprecated.
      Decodes a BSON value from the given reader into an instance of the type parameter T.
      Parameters:
      reader - the BSON reader
      decoderContext - the decoder context
      Returns:
      an instance of the type parameter T.