public class JsonWriter extends AbstractBsonWriter
Simplified fork of org.bson.json.JsonWriter that ignores behaviour specific to MongoDB and produces more compat output
Modifiers | Name | Description |
---|---|---|
class |
JsonWriter.Context |
Constructor and description |
---|
JsonWriter
(java.io.Writer target) |
JsonWriter
(java.io.Writer target, org.bson.json.JsonWriterSettings settings) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
doWriteBinaryData(org.bson.BsonBinary value) |
|
protected void |
doWriteBoolean(boolean value) |
|
protected void |
doWriteDBPointer(BsonDbPointer value) |
|
protected void |
doWriteDateTime(long value) |
|
protected void |
doWriteDecimal128(org.bson.types.Decimal128 value) |
|
protected void |
doWriteDouble(double value) |
|
protected void |
doWriteEndArray() |
|
protected void |
doWriteEndDocument() |
|
protected void |
doWriteInt32(int value) |
|
protected void |
doWriteInt64(long value) |
|
protected void |
doWriteJavaScript(java.lang.String value) |
|
protected void |
doWriteJavaScriptWithScope(java.lang.String value) |
|
protected void |
doWriteMaxKey() |
|
protected void |
doWriteMinKey() |
|
protected void |
doWriteNull() |
|
protected void |
doWriteObjectId(org.bson.types.ObjectId value) |
|
protected void |
doWriteRegularExpression(org.bson.BsonRegularExpression regularExpression) |
|
protected void |
doWriteStartArray() |
|
protected void |
doWriteStartDocument() |
|
protected void |
doWriteString(java.lang.String value) |
|
protected void |
doWriteSymbol(java.lang.String value) |
|
protected void |
doWriteTimestamp(org.bson.BsonTimestamp value) |
|
protected void |
doWriteUndefined() |
|
public void |
flush() |
|
protected JsonWriter.Context |
getContext() |
|
protected void |
writeNameHelper(java.lang.String name) |