Package com.mongodb.internal.connection
Class ElementExtendingBsonWriter
- java.lang.Object
-
- com.mongodb.internal.connection.BsonWriterDecorator
-
- com.mongodb.internal.connection.ElementExtendingBsonWriter
-
- All Implemented Interfaces:
BsonWriter
@Deprecated(since="2021-05-27") public class ElementExtendingBsonWriter extends BsonWriterDecorator
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description ElementExtendingBsonWriter(BsonBinaryWriter writer, java.util.List<BsonElement> extraElements)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
pipe(BsonReader reader)
Deprecated.Reads a single document from a BsonReader and writes it to this.void
writeEndDocument()
Deprecated.Writes the end of a BSON document to the writer.void
writeStartDocument()
Deprecated.Writes the start of a BSON document to the writer.void
writeStartDocument(java.lang.String name)
Deprecated.Writes the start of a BSON document element to the writer.-
Methods inherited from class com.mongodb.internal.connection.BsonWriterDecorator
flush, writeBinaryData, writeBinaryData, writeBoolean, writeBoolean, writeDateTime, writeDateTime, writeDBPointer, writeDBPointer, writeDecimal128, writeDecimal128, writeDouble, writeDouble, writeEndArray, writeInt32, writeInt32, writeInt64, writeInt64, writeJavaScript, writeJavaScript, writeJavaScriptWithScope, writeJavaScriptWithScope, writeMaxKey, writeMaxKey, writeMinKey, writeMinKey, writeName, writeNull, writeNull, writeObjectId, writeObjectId, writeRegularExpression, writeRegularExpression, writeStartArray, writeStartArray, writeString, writeString, writeSymbol, writeSymbol, writeTimestamp, writeTimestamp, writeUndefined, writeUndefined
-
-
-
-
Constructor Detail
-
ElementExtendingBsonWriter
public ElementExtendingBsonWriter(BsonBinaryWriter writer, java.util.List<BsonElement> extraElements)
Deprecated.
-
-
Method Detail
-
writeEndDocument
public void writeEndDocument()
Deprecated.Description copied from interface:BsonWriter
Writes the end of a BSON document to the writer.- Specified by:
writeEndDocument
in interfaceBsonWriter
-
pipe
public void pipe(BsonReader reader)
Deprecated.Description copied from interface:BsonWriter
Reads a single document from a BsonReader and writes it to this.- Specified by:
pipe
in interfaceBsonWriter
- Overrides:
pipe
in classBsonWriterDecorator
- Parameters:
reader
- The source.
-
writeStartDocument
public void writeStartDocument(java.lang.String name)
Deprecated.Description copied from interface:BsonWriter
Writes the start of a BSON document element to the writer.- Specified by:
writeStartDocument
in interfaceBsonWriter
- Overrides:
writeStartDocument
in classBsonWriterDecorator
- Parameters:
name
- The name of the element.
-
writeStartDocument
public void writeStartDocument()
Deprecated.Description copied from interface:BsonWriter
Writes the start of a BSON document to the writer.- Specified by:
writeStartDocument
in interfaceBsonWriter
- Overrides:
writeStartDocument
in classBsonWriterDecorator
-
-