Package com.mongodb

Class LazyDBDecoder

  • All Implemented Interfaces:
    DBDecoder, BSONDecoder

    @Deprecated(since="2021-05-27")
    public class LazyDBDecoder
    extends LazyBSONDecoder
    implements DBDecoder
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    A decoder for LazyDBObject instances.
    • Constructor Detail

      • LazyDBDecoder

        public LazyDBDecoder()
        Deprecated.
    • Method Detail

      • getDBCallback

        public DBCallback getDBCallback​(@Nullable
                                        DBCollection collection)
        Deprecated.
        Description copied from interface: DBDecoder
        Get a callback for the given collection.
        Specified by:
        getDBCallback in interface DBDecoder
        Parameters:
        collection - the collection
        Returns:
        the callback
      • readObject

        public DBObject readObject​(java.io.InputStream in)
                            throws java.io.IOException
        Deprecated.
        Description copied from interface: BSONDecoder
        Read a single BSON object from the given input stream.
        Specified by:
        readObject in interface BSONDecoder
        Overrides:
        readObject in class LazyBSONDecoder
        Parameters:
        in - the input stream in BSON format
        Returns:
        the BSON object for the given bytes
        Throws:
        java.io.IOException - if there's a problem reading the object from the InputStream
      • decode

        public DBObject decode​(java.io.InputStream input,
                               DBCollection collection)
                        throws java.io.IOException
        Deprecated.
        Description copied from interface: DBDecoder
        Decode a single DBObject belonging to the given collection from the given input stream.
        Specified by:
        decode in interface DBDecoder
        Parameters:
        input - the input stream
        collection - the collection
        Returns:
        the DBObject
        Throws:
        java.io.IOException - may throw an exception while decoding from the InputStream
      • decode

        public DBObject decode​(byte[] bytes,
                               DBCollection collection)
        Deprecated.
        Description copied from interface: DBDecoder
        Decode a single DBObject belonging to the given collection from the given array of bytes.
        Specified by:
        decode in interface DBDecoder
        Parameters:
        bytes - the byte array
        collection - the collection
        Returns:
        the DBObject