Package org.bson
Class BsonDocumentWriter
java.lang.Object
org.bson.AbstractBsonWriter
org.bson.BsonDocumentWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,BsonWriter
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bson.AbstractBsonWriter
AbstractBsonWriter.State -
Constructor Summary
ConstructorsConstructorDescriptionBsonDocumentWriter(BsonDocument document) Deprecated.Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoWriteBoolean(boolean value) Deprecated.voidDeprecated.voiddoWriteObjectId(ObjectId value) Deprecated.voidDeprecated.voiddoWriteString(String value) Deprecated.voiddoWriteSymbol(String value) Deprecated.voiddoWriteTimestamp(BsonTimestamp value) Deprecated.voidDeprecated.voidflush()Deprecated.Flushes any pending data to the output destination.Deprecated.Gets the document that the writer is writing to.Methods inherited from class org.bson.AbstractBsonWriter
close, pipe, pipe, writeBinaryData, writeBinaryData, writeBoolean, writeBoolean, writeDateTime, writeDateTime, writeDBPointer, writeDBPointer, writeDecimal128, writeDecimal128, writeDouble, writeDouble, writeEndArray, writeEndDocument, writeInt32, writeInt32, writeInt64, writeInt64, writeJavaScript, writeJavaScript, writeJavaScriptWithScope, writeJavaScriptWithScope, writeMaxKey, writeMaxKey, writeMinKey, writeMinKey, writeName, writeNull, writeNull, writeObjectId, writeObjectId, writeRegularExpression, writeRegularExpression, writeStartArray, writeStartArray, writeStartDocument, writeStartDocument, writeString, writeString, writeSymbol, writeSymbol, writeTimestamp, writeTimestamp, writeUndefined, writeUndefined
-
Constructor Details
-
BsonDocumentWriter
Deprecated.Construct a new instance.- Parameters:
document- the document to write to
-
-
Method Details
-
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
Deprecated. -
doWriteRegularExpression
Deprecated. -
doWriteString
Deprecated. -
doWriteSymbol
Deprecated. -
doWriteTimestamp
Deprecated. -
doWriteUndefined
public void doWriteUndefined()Deprecated. -
flush
public void flush()Deprecated.Description copied from interface:BsonWriterFlushes any pending data to the output destination.
-