Package org.bson.json

Class JsonWriter.Context

    • Constructor Detail

      • Context

        @Deprecated
        public Context​(JsonWriter.Context parentContext,
                       BsonContextType contextType,
                       java.lang.String indentChars)
        Deprecated.
        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
        indentChars - the String to use for indentation at this level.
      • 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