Package com.mongodb

Interface DBEncoder

  • All Known Implementing Classes:
    DefaultDBEncoder, LazyDBEncoder

    @Deprecated(since="2021-05-27")
    public interface DBEncoder
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    An interface for encoders of BSONObject to BSON.
    • Method Detail

      • writeObject

        int writeObject​(OutputBuffer outputBuffer,
                        BSONObject document)
        Deprecated.
        Encode the BSONObject.
        Parameters:
        outputBuffer - the OutputBuffer to write to
        document - the BSONObject to write
        Returns:
        the number of characters in the encoding