Package org.bson.json

Class JsonWriter

  • All Implemented Interfaces:
    BsonWriter


    public class JsonWriter
    extends AbstractBsonWriter
    A BsonWriter implementation that outputs a JSON representation of BSON.
    Since:
    3.0
    • Constructor Detail

      • JsonWriter

        public JsonWriter​(java.io.Writer writer)
        Creates a new instance which uses writer to write JSON to.
        Parameters:
        writer - the writer to write JSON to.
      • JsonWriter

        public JsonWriter​(java.io.Writer writer,
                          JsonWriterSettings settings)
        Creates a new instance which uses writer to write JSON to and uses the given settings.
        Parameters:
        writer - the writer to write JSON to.
        settings - the settings to apply to this writer.