Package org.bson.json
Class JsonWriter
java.lang.Object
org.bson.AbstractBsonWriter
org.bson.json.JsonWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,BsonWriter
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A
BsonWriter implementation that outputs a JSON representation of BSON.- Since:
- 3.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassDeprecated.Usage of this API is not supported in AEM as a Cloud Service.Nested classes/interfaces inherited from class org.bson.AbstractBsonWriter
AbstractBsonWriter.State -
Constructor Summary
ConstructorsConstructorDescriptionJsonWriter(Writer writer) Deprecated.Creates a new instance which useswriterto write JSON to.JsonWriter(Writer writer, JsonWriterSettings settings) Deprecated.Creates a new instance which useswriterto write JSON to and uses the given settings. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoWriteBoolean(boolean value) Deprecated.voidDeprecated.voiddoWriteObjectId(ObjectId objectId) Deprecated.voiddoWriteRegularExpression(BsonRegularExpression regularExpression) Deprecated.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 theWriter.booleanDeprecated.Return true if the output has been truncated due to exceeding the length specified inJsonWriterSettings.maxLength.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
-
JsonWriter
Deprecated.Creates a new instance which useswriterto write JSON to.- Parameters:
writer- the writer to write JSON to.
-
JsonWriter
Deprecated.Creates a new instance which useswriterto write JSON to and uses the given settings.- Parameters:
writer- the writer to write JSON to.settings- the settings to apply to this writer.
-
-
Method Details
-
getWriter
Deprecated.Gets theWriter.- Returns:
- the writer
-
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. -
isTruncated
public boolean isTruncated()Deprecated.Return true if the output has been truncated due to exceeding the length specified inJsonWriterSettings.maxLength.- Returns:
- true if the output has been truncated
- Since:
- 3.7
- See Also:
-