Package com.mongodb

Class DefaultDBEncoder

  • All Implemented Interfaces:
    DBEncoder, BSONEncoder

    @Deprecated(since="2021-05-27")
    public class DefaultDBEncoder
    extends BasicBSONEncoder
    implements DBEncoder
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    The default BSON encoder for BSONObject instances.
    • Constructor Detail

      • DefaultDBEncoder

        public DefaultDBEncoder()
        Deprecated.
    • Method Detail

      • writeObject

        public int writeObject​(OutputBuffer outputBuffer,
                               BSONObject document)
        Deprecated.
        Description copied from interface: DBEncoder
        Encode the BSONObject.
        Specified by:
        writeObject in interface DBEncoder
        Parameters:
        outputBuffer - the OutputBuffer to write to
        document - the BSONObject to write
        Returns:
        the number of characters in the encoding
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object