public class JsonWriter extends org.bson.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(org.bson.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() |
|
private void |
throwBsonException(java.io.IOException e) |
|
protected void |
writeNameHelper(java.lang.String name) |
|
private void |
writeStringHelper(java.lang.String str) |
Methods inherited from class | Name |
---|---|
class org.bson.AbstractBsonWriter |
org.bson.AbstractBsonWriter#writeString(java.lang.String, java.lang.String), org.bson.AbstractBsonWriter#writeString(java.lang.String), org.bson.AbstractBsonWriter#writeBoolean(boolean), org.bson.AbstractBsonWriter#writeBoolean(java.lang.String, boolean), org.bson.AbstractBsonWriter#writeDouble(double), org.bson.AbstractBsonWriter#writeDouble(java.lang.String, double), org.bson.AbstractBsonWriter#writeNull(), org.bson.AbstractBsonWriter#writeNull(java.lang.String), org.bson.AbstractBsonWriter#writeBinaryData(org.bson.BsonBinary), org.bson.AbstractBsonWriter#writeBinaryData(java.lang.String, org.bson.BsonBinary), org.bson.AbstractBsonWriter#writeDateTime(long), org.bson.AbstractBsonWriter#writeDateTime(java.lang.String, long), org.bson.AbstractBsonWriter#writeDBPointer(java.lang.String, org.bson.BsonDbPointer), org.bson.AbstractBsonWriter#writeDBPointer(org.bson.BsonDbPointer), org.bson.AbstractBsonWriter#writeEndArray(), org.bson.AbstractBsonWriter#writeEndDocument(), org.bson.AbstractBsonWriter#writeInt32(int), org.bson.AbstractBsonWriter#writeInt32(java.lang.String, int), org.bson.AbstractBsonWriter#writeInt64(long), org.bson.AbstractBsonWriter#writeInt64(java.lang.String, long), org.bson.AbstractBsonWriter#writeDecimal128(java.lang.String, org.bson.types.Decimal128), org.bson.AbstractBsonWriter#writeDecimal128(org.bson.types.Decimal128), org.bson.AbstractBsonWriter#writeJavaScript(java.lang.String), org.bson.AbstractBsonWriter#writeJavaScript(java.lang.String, java.lang.String), org.bson.AbstractBsonWriter#writeJavaScriptWithScope(java.lang.String, java.lang.String), org.bson.AbstractBsonWriter#writeJavaScriptWithScope(java.lang.String), org.bson.AbstractBsonWriter#writeMaxKey(java.lang.String), org.bson.AbstractBsonWriter#writeMaxKey(), org.bson.AbstractBsonWriter#writeMinKey(), org.bson.AbstractBsonWriter#writeMinKey(java.lang.String), org.bson.AbstractBsonWriter#writeName(java.lang.String), org.bson.AbstractBsonWriter#writeObjectId(java.lang.String, org.bson.types.ObjectId), org.bson.AbstractBsonWriter#writeObjectId(org.bson.types.ObjectId), org.bson.AbstractBsonWriter#writeRegularExpression(org.bson.BsonRegularExpression), org.bson.AbstractBsonWriter#writeRegularExpression(java.lang.String, org.bson.BsonRegularExpression), org.bson.AbstractBsonWriter#writeStartArray(), org.bson.AbstractBsonWriter#writeStartArray(java.lang.String), org.bson.AbstractBsonWriter#writeStartDocument(), org.bson.AbstractBsonWriter#writeStartDocument(java.lang.String), org.bson.AbstractBsonWriter#writeSymbol(java.lang.String), org.bson.AbstractBsonWriter#writeSymbol(java.lang.String, java.lang.String), org.bson.AbstractBsonWriter#writeTimestamp(org.bson.BsonTimestamp), org.bson.AbstractBsonWriter#writeTimestamp(java.lang.String, org.bson.BsonTimestamp), org.bson.AbstractBsonWriter#writeUndefined(java.lang.String), org.bson.AbstractBsonWriter#writeUndefined(), org.bson.AbstractBsonWriter#pipe(org.bson.BsonReader, java.util.List), org.bson.AbstractBsonWriter#pipe(org.bson.BsonReader), org.bson.AbstractBsonWriter#close(), org.bson.AbstractBsonWriter#wait(long), org.bson.AbstractBsonWriter#wait(long, int), org.bson.AbstractBsonWriter#wait(), org.bson.AbstractBsonWriter#equals(java.lang.Object), org.bson.AbstractBsonWriter#toString(), org.bson.AbstractBsonWriter#hashCode(), org.bson.AbstractBsonWriter#getClass(), org.bson.AbstractBsonWriter#notify(), org.bson.AbstractBsonWriter#notifyAll(), org.bson.AbstractBsonWriter#flush() |