public class FieldTrackingBsonWriter extends BsonWriterDecorator
| Constructor and Description |
|---|
FieldTrackingBsonWriter(BsonWriter bsonWriter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasWrittenField() |
void |
pipe(BsonReader reader)
Reads a single document from a BsonReader and writes it to this.
|
void |
writeBinaryData(BsonBinary binary)
Writes a BSON Binary data element to the writer.
|
void |
writeBinaryData(java.lang.String name,
BsonBinary binary)
Writes a BSON Binary data element to the writer.
|
void |
writeBoolean(boolean value)
Writes a BSON Boolean to the writer.
|
void |
writeBoolean(java.lang.String name,
boolean value)
Writes a BSON Boolean element to the writer.
|
void |
writeDateTime(long value)
Writes a BSON DateTime to the writer.
|
void |
writeDateTime(java.lang.String name,
long value)
Writes a BSON DateTime element to the writer.
|
void |
writeDBPointer(BsonDbPointer value)
Writes a BSON DBPointer to the writer.
|
void |
writeDBPointer(java.lang.String name,
BsonDbPointer value)
Writes a BSON DBPointer element to the writer.
|
void |
writeDecimal128(Decimal128 value)
Writes a BSON Decimal128 to the writer.
|
void |
writeDecimal128(java.lang.String name,
Decimal128 value)
Writes a BSON Decimal128 element to the writer.
|
void |
writeDouble(double value)
Writes a BSON Double to the writer.
|
void |
writeDouble(java.lang.String name,
double value)
Writes a BSON Double element to the writer.
|
void |
writeInt32(int value)
Writes a BSON Int32 to the writer.
|
void |
writeInt32(java.lang.String name,
int value)
Writes a BSON Int32 element to the writer.
|
void |
writeInt64(long value)
Writes a BSON Int64 to the writer.
|
void |
writeInt64(java.lang.String name,
long value)
Writes a BSON Int64 element to the writer.
|
void |
writeJavaScript(java.lang.String code)
Writes a BSON JavaScript to the writer.
|
void |
writeJavaScript(java.lang.String name,
java.lang.String code)
Writes a BSON JavaScript element to the writer.
|
void |
writeJavaScriptWithScope(java.lang.String code)
Writes a BSON JavaScript to the writer (call WriteStartDocument to start writing the scope).
|
void |
writeJavaScriptWithScope(java.lang.String name,
java.lang.String code)
Writes a BSON JavaScript element to the writer (call WriteStartDocument to start writing the scope).
|
void |
writeMaxKey()
Writes a BSON MaxKey to the writer.
|
void |
writeMaxKey(java.lang.String name)
Writes a BSON MaxKey element to the writer.
|
void |
writeMinKey()
Writes a BSON MinKey to the writer.
|
void |
writeMinKey(java.lang.String name)
Writes a BSON MinKey element to the writer.
|
void |
writeNull()
Writes a BSON null to the writer.
|
void |
writeNull(java.lang.String name)
Writes a BSON null element to the writer.
|
void |
writeObjectId(ObjectId objectId)
Writes a BSON ObjectId to the writer.
|
void |
writeObjectId(java.lang.String name,
ObjectId objectId)
Writes a BSON ObjectId element to the writer.
|
void |
writeRegularExpression(BsonRegularExpression regularExpression)
Writes a BSON regular expression to the writer.
|
void |
writeRegularExpression(java.lang.String name,
BsonRegularExpression regularExpression)
Writes a BSON regular expression element to the writer.
|
void |
writeStartArray()
Writes the start of a BSON array to the writer.
|
void |
writeStartArray(java.lang.String name)
Writes the start of a BSON array element to the writer.
|
void |
writeStartDocument()
Writes the start of a BSON document to the writer.
|
void |
writeStartDocument(java.lang.String name)
Writes the start of a BSON document element to the writer.
|
void |
writeString(java.lang.String value)
Writes a BSON String to the writer.
|
void |
writeString(java.lang.String name,
java.lang.String value)
Writes a BSON String element to the writer.
|
void |
writeSymbol(java.lang.String value)
Writes a BSON Symbol to the writer.
|
void |
writeSymbol(java.lang.String name,
java.lang.String value)
Writes a BSON Symbol element to the writer.
|
void |
writeTimestamp(BsonTimestamp value)
Writes a BSON Timestamp to the writer.
|
void |
writeTimestamp(java.lang.String name,
BsonTimestamp value)
Writes a BSON Timestamp element to the writer.
|
void |
writeUndefined()
Writes a BSON undefined to the writer.
|
void |
writeUndefined(java.lang.String name)
Writes a BSON undefined element to the writer.
|
flush, writeEndArray, writeEndDocument, writeNamepublic FieldTrackingBsonWriter(BsonWriter bsonWriter)
public boolean hasWrittenField()
public void writeStartDocument(java.lang.String name)
BsonWriterwriteStartDocument in interface BsonWriterwriteStartDocument in class BsonWriterDecoratorname - The name of the element.public void writeStartDocument()
BsonWriterwriteStartDocument in interface BsonWriterwriteStartDocument in class BsonWriterDecoratorpublic void writeStartArray(java.lang.String name)
BsonWriterwriteStartArray in interface BsonWriterwriteStartArray in class BsonWriterDecoratorname - The name of the element.public void writeStartArray()
BsonWriterwriteStartArray in interface BsonWriterwriteStartArray in class BsonWriterDecoratorpublic void writeBinaryData(java.lang.String name,
BsonBinary binary)
BsonWriterwriteBinaryData in interface BsonWriterwriteBinaryData in class BsonWriterDecoratorname - The name of the element.binary - The Binary data value.public void writeBinaryData(BsonBinary binary)
BsonWriterwriteBinaryData in interface BsonWriterwriteBinaryData in class BsonWriterDecoratorbinary - The Binary data.public void writeBoolean(java.lang.String name,
boolean value)
BsonWriterwriteBoolean in interface BsonWriterwriteBoolean in class BsonWriterDecoratorname - The name of the element.value - The Boolean value.public void writeBoolean(boolean value)
BsonWriterwriteBoolean in interface BsonWriterwriteBoolean in class BsonWriterDecoratorvalue - The Boolean value.public void writeDateTime(java.lang.String name,
long value)
BsonWriterwriteDateTime in interface BsonWriterwriteDateTime in class BsonWriterDecoratorname - The name of the element.value - The number of milliseconds since the Unix epoch.public void writeDateTime(long value)
BsonWriterwriteDateTime in interface BsonWriterwriteDateTime in class BsonWriterDecoratorvalue - The number of milliseconds since the Unix epoch.public void writeDBPointer(java.lang.String name,
BsonDbPointer value)
BsonWriterwriteDBPointer in interface BsonWriterwriteDBPointer in class BsonWriterDecoratorname - The name of the element.value - The DBPointer to writepublic void writeDBPointer(BsonDbPointer value)
BsonWriterwriteDBPointer in interface BsonWriterwriteDBPointer in class BsonWriterDecoratorvalue - The DBPointer to writepublic void writeDouble(java.lang.String name,
double value)
BsonWriterwriteDouble in interface BsonWriterwriteDouble in class BsonWriterDecoratorname - The name of the element.value - The Double value.public void writeDouble(double value)
BsonWriterwriteDouble in interface BsonWriterwriteDouble in class BsonWriterDecoratorvalue - The Double value.public void writeInt32(java.lang.String name,
int value)
BsonWriterwriteInt32 in interface BsonWriterwriteInt32 in class BsonWriterDecoratorname - The name of the element.value - The Int32 value.public void writeInt32(int value)
BsonWriterwriteInt32 in interface BsonWriterwriteInt32 in class BsonWriterDecoratorvalue - The Int32 value.public void writeInt64(java.lang.String name,
long value)
BsonWriterwriteInt64 in interface BsonWriterwriteInt64 in class BsonWriterDecoratorname - The name of the element.value - The Int64 value.public void writeInt64(long value)
BsonWriterwriteInt64 in interface BsonWriterwriteInt64 in class BsonWriterDecoratorvalue - The Int64 value.public void writeDecimal128(Decimal128 value)
BsonWriterwriteDecimal128 in interface BsonWriterwriteDecimal128 in class BsonWriterDecoratorvalue - The Decimal128 value.public void writeDecimal128(java.lang.String name,
Decimal128 value)
BsonWriterwriteDecimal128 in interface BsonWriterwriteDecimal128 in class BsonWriterDecoratorname - The name of the element.value - The Decimal128 value.public void writeJavaScript(java.lang.String name,
java.lang.String code)
BsonWriterwriteJavaScript in interface BsonWriterwriteJavaScript in class BsonWriterDecoratorname - The name of the element.code - The JavaScript code.public void writeJavaScript(java.lang.String code)
BsonWriterwriteJavaScript in interface BsonWriterwriteJavaScript in class BsonWriterDecoratorcode - The JavaScript code.public void writeJavaScriptWithScope(java.lang.String name,
java.lang.String code)
BsonWriterwriteJavaScriptWithScope in interface BsonWriterwriteJavaScriptWithScope in class BsonWriterDecoratorname - The name of the element.code - The JavaScript code.public void writeJavaScriptWithScope(java.lang.String code)
BsonWriterwriteJavaScriptWithScope in interface BsonWriterwriteJavaScriptWithScope in class BsonWriterDecoratorcode - The JavaScript code.public void writeMaxKey(java.lang.String name)
BsonWriterwriteMaxKey in interface BsonWriterwriteMaxKey in class BsonWriterDecoratorname - The name of the element.public void writeMaxKey()
BsonWriterwriteMaxKey in interface BsonWriterwriteMaxKey in class BsonWriterDecoratorpublic void writeMinKey(java.lang.String name)
BsonWriterwriteMinKey in interface BsonWriterwriteMinKey in class BsonWriterDecoratorname - The name of the element.public void writeMinKey()
BsonWriterwriteMinKey in interface BsonWriterwriteMinKey in class BsonWriterDecoratorpublic void writeNull(java.lang.String name)
BsonWriterwriteNull in interface BsonWriterwriteNull in class BsonWriterDecoratorname - The name of the element.public void writeNull()
BsonWriterwriteNull in interface BsonWriterwriteNull in class BsonWriterDecoratorpublic void writeObjectId(java.lang.String name,
ObjectId objectId)
BsonWriterwriteObjectId in interface BsonWriterwriteObjectId in class BsonWriterDecoratorname - The name of the element.objectId - The ObjectId value.public void writeObjectId(ObjectId objectId)
BsonWriterwriteObjectId in interface BsonWriterwriteObjectId in class BsonWriterDecoratorobjectId - The ObjectId value.public void writeRegularExpression(java.lang.String name,
BsonRegularExpression regularExpression)
BsonWriterwriteRegularExpression in interface BsonWriterwriteRegularExpression in class BsonWriterDecoratorname - The name of the element.regularExpression - The RegularExpression value.public void writeRegularExpression(BsonRegularExpression regularExpression)
BsonWriterwriteRegularExpression in interface BsonWriterwriteRegularExpression in class BsonWriterDecoratorregularExpression - the regular expression to write.public void writeString(java.lang.String name,
java.lang.String value)
BsonWriterwriteString in interface BsonWriterwriteString in class BsonWriterDecoratorname - The name of the element.value - The String value.public void writeString(java.lang.String value)
BsonWriterwriteString in interface BsonWriterwriteString in class BsonWriterDecoratorvalue - The String value.public void writeSymbol(java.lang.String name,
java.lang.String value)
BsonWriterwriteSymbol in interface BsonWriterwriteSymbol in class BsonWriterDecoratorname - The name of the element.value - The symbol.public void writeSymbol(java.lang.String value)
BsonWriterwriteSymbol in interface BsonWriterwriteSymbol in class BsonWriterDecoratorvalue - The symbol.public void writeTimestamp(java.lang.String name,
BsonTimestamp value)
BsonWriterwriteTimestamp in interface BsonWriterwriteTimestamp in class BsonWriterDecoratorname - The name of the element.value - The combined timestamp/increment value.public void writeTimestamp(BsonTimestamp value)
BsonWriterwriteTimestamp in interface BsonWriterwriteTimestamp in class BsonWriterDecoratorvalue - The combined timestamp/increment value.public void writeUndefined(java.lang.String name)
BsonWriterwriteUndefined in interface BsonWriterwriteUndefined in class BsonWriterDecoratorname - The name of the element.public void writeUndefined()
BsonWriterwriteUndefined in interface BsonWriterwriteUndefined in class BsonWriterDecoratorpublic void pipe(BsonReader reader)
BsonWriterpipe in interface BsonWriterpipe in class BsonWriterDecoratorreader - The source.Copyright © 2010 - 2023 Adobe. All Rights Reserved