Package org.bson

Class BsonBinaryReader

All Implemented Interfaces:
Closeable, AutoCloseable, BsonReader

@Deprecated(since="2022-10-31") public class BsonBinaryReader extends AbstractBsonReader
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A BsonReader implementation that reads from a binary stream of data. This is the most commonly used implementation.
Since:
3.0
  • Constructor Details

    • BsonBinaryReader

      public BsonBinaryReader(ByteBuffer byteBuffer)
      Deprecated.
      Construct an instance.
      Parameters:
      byteBuffer - the input for this reader
    • BsonBinaryReader

      public BsonBinaryReader(BsonInput bsonInput)
      Deprecated.
      Construct an instance.
      Parameters:
      bsonInput - the input for this reader
  • Method Details

    • close

      public void close()
      Deprecated.
      Description copied from class: AbstractBsonReader
      Closes the reader.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface BsonReader
      Specified by:
      close in interface Closeable
      Overrides:
      close in class AbstractBsonReader
    • getBsonInput

      public BsonInput getBsonInput()
      Deprecated.
      Gets the BSON input backing this instance.
      Returns:
      the BSON input
    • readBsonType

      public BsonType readBsonType()
      Deprecated.
      Description copied from interface: BsonReader
      Reads a BSONType from the reader.
      Specified by:
      readBsonType in interface BsonReader
      Specified by:
      readBsonType in class AbstractBsonReader
      Returns:
      A BSONType.
    • doReadDecimal128

      public Decimal128 doReadDecimal128()
      Deprecated.
    • doReadStartArray

      public void doReadStartArray()
      Deprecated.
    • mark

      @Deprecated public void mark()
      Deprecated.
      Description copied from interface: BsonReader
      Creates a bookmark in the BsonReader's input The previous mark must be cleared before creating a new one
    • getMark

      public BsonReaderMark getMark()
      Deprecated.
      Description copied from interface: BsonReader
      Gets a mark representing the current state of the reader.
      Returns:
      the mark
    • reset

      @Deprecated public void reset()
      Deprecated.
      Description copied from interface: BsonReader
      Go back to the state at the last mark and removes the mark