Package org.bson

Class BsonDocumentWriter

java.lang.Object
org.bson.AbstractBsonWriter
org.bson.BsonDocumentWriter
All Implemented Interfaces:
Closeable, AutoCloseable, BsonWriter

@Deprecated(since="2022-10-31") public class BsonDocumentWriter extends AbstractBsonWriter
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A BsonWriter implementation that writes to an instance of BsonDocument. This can be used to encode an object into a BsonDocument using an Encoder.
Since:
3.0
See Also:
  • Constructor Details

    • BsonDocumentWriter

      public BsonDocumentWriter(BsonDocument document)
      Deprecated.
      Construct a new instance.
      Parameters:
      document - the document to write to
  • Method Details

    • getDocument

      public BsonDocument getDocument()
      Deprecated.
      Gets the document that the writer is writing to.
      Returns:
      the document
    • doWriteBoolean

      public void doWriteBoolean(boolean value)
      Deprecated.
    • doWriteNull

      public void doWriteNull()
      Deprecated.
    • doWriteObjectId

      public void doWriteObjectId(ObjectId value)
      Deprecated.
    • doWriteRegularExpression

      public void doWriteRegularExpression(BsonRegularExpression value)
      Deprecated.
    • doWriteString

      public void doWriteString(String value)
      Deprecated.
    • doWriteSymbol

      public void doWriteSymbol(String value)
      Deprecated.
    • doWriteTimestamp

      public void doWriteTimestamp(BsonTimestamp value)
      Deprecated.
    • doWriteUndefined

      public void doWriteUndefined()
      Deprecated.
    • flush

      public void flush()
      Deprecated.
      Description copied from interface: BsonWriter
      Flushes any pending data to the output destination.