Package org.bson

Class BasicBSONDecoder

  • All Implemented Interfaces:
    BSONDecoder
    Direct Known Subclasses:
    DefaultDBDecoder

    @Deprecated(since="2022-10-31")
    public class BasicBSONDecoder
    extends java.lang.Object
    implements BSONDecoder
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    Basic implementation of BSONDecoder interface that creates BasicBSONObject instances
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicBSONDecoder()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int decode​(byte[] bytes, BSONCallback callback)
      Deprecated.
      Decode a single BSON object into the given callback from the given byte array.
      int decode​(java.io.InputStream in, BSONCallback callback)
      Deprecated.
      Decode a single BSON object into the given callback from the given input stream.
      BSONObject readObject​(byte[] bytes)
      Deprecated.
      Read a single BSON object from the given bytes.
      BSONObject readObject​(java.io.InputStream in)
      Deprecated.
      Read a single BSON object from the given input stream.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BasicBSONDecoder

        public BasicBSONDecoder()
        Deprecated.
    • Method Detail

      • readObject

        public BSONObject readObject​(byte[] bytes)
        Deprecated.
        Description copied from interface: BSONDecoder
        Read a single BSON object from the given bytes.
        Specified by:
        readObject in interface BSONDecoder
        Parameters:
        bytes - the bytes in BSON format
        Returns:
        the BSON object for the given bytes
      • readObject

        public BSONObject 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
        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 int decode​(byte[] bytes,
                          BSONCallback callback)
        Deprecated.
        Description copied from interface: BSONDecoder
        Decode a single BSON object into the given callback from the given byte array.
        Specified by:
        decode in interface BSONDecoder
        Parameters:
        bytes - the bytes in BSON format
        callback - the callback
        Returns:
        the number of bytes in the BSON object
      • decode

        public int decode​(java.io.InputStream in,
                          BSONCallback callback)
                   throws java.io.IOException
        Deprecated.
        Description copied from interface: BSONDecoder
        Decode a single BSON object into the given callback from the given input stream.
        Specified by:
        decode in interface BSONDecoder
        Parameters:
        in - the input stream in BSON format
        callback - the callback
        Returns:
        the number of bytes read from the input stream
        Throws:
        java.io.IOException - if there's a problem reading from the InputStream