Package org.bson.json

Class JsonWriter.Context

  • Enclosing class:
    JsonWriter

    @Deprecated(since="2022-10-31")
    public class JsonWriter.Context
    extends AbstractBsonWriter.Context
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    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 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)
        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