Interface Encoder<T>

Type Parameters:
T - the type that the instance can encode into BSON
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 Encoder<T>
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Instances of this class are capable of encoding an instance of the type parameter T into a BSON value. .
Since:
3.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encode(BsonWriter writer, T value, EncoderContext encoderContext)
    Deprecated.
    Encode an instance of the type parameter T into a BSON value.
    Deprecated.
    Returns the Class instance that this encodes.
  • Method Details

    • encode

      void encode(BsonWriter writer, T value, EncoderContext encoderContext)
      Deprecated.
      Encode an instance of the type parameter T into a BSON value.
      Parameters:
      writer - the BSON writer to encode into
      value - the value to encode
      encoderContext - the encoder context
    • getEncoderClass

      Class<T> getEncoderClass()
      Deprecated.
      Returns the Class instance that this encodes. This is necessary because Java does not reify generic types.
      Returns:
      the Class instance that this encodes.