Package org.bson.json

Class JsonWriter.Context

java.lang.Object
org.bson.AbstractBsonWriter.Context
org.bson.json.JsonWriter.Context
Enclosing class:
JsonWriter

public class JsonWriter.Context extends AbstractBsonWriter.Context
The context for the writer, inheriting all the values from AbstractBsonWriter.Context, and additionally providing settings for the indentation level and whether there are any child elements at this level.
  • Constructor Details

    • Context

      public Context(JsonWriter.Context parentContext, BsonContextType contextType)
      Creates a new context.
      Parameters:
      parentContext - the parent context that can be used for going back up to the parent level
      contextType - the type of this context
  • Method Details