Package org.bson

Class BsonDocumentReader

java.lang.Object
org.bson.AbstractBsonReader
org.bson.BsonDocumentReader
All Implemented Interfaces:
Closeable, AutoCloseable, BsonReader

@Deprecated(since="2022-10-31") public class BsonDocumentReader extends AbstractBsonReader
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A BsonReader implementation that reads from an instance of BsonDocument. This can be used to decode a BsonDocument using a Decoder.
Since:
3.0
See Also:
  • Constructor Details

    • BsonDocumentReader

      public BsonDocumentReader(BsonDocument document)
      Deprecated.
      Construct a new instance.
      Parameters:
      document - the document to read from
  • Method Details

    • doReadDecimal128

      public Decimal128 doReadDecimal128()
      Deprecated.
    • 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.
    • 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