Package org.bson.json
Class JsonWriter.Context
java.lang.Object
org.bson.AbstractBsonWriter.Context
org.bson.json.JsonWriter.Context
- Enclosing class:
JsonWriter
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 Summary
ConstructorsConstructorDescriptionContext(JsonWriter.Context parentContext, BsonContextType contextType) Deprecated.Creates a new context.Context(JsonWriter.Context parentContext, BsonContextType contextType, String indentChars) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the parent context.Methods inherited from class org.bson.AbstractBsonWriter.Context
copy, getContextType
-
Constructor Details
-
Context
@Deprecated public Context(JsonWriter.Context parentContext, BsonContextType contextType, String indentChars) Deprecated.Creates a new context.- Parameters:
parentContext- the parent context that can be used for going back up to the parent levelcontextType- the type of this contextindentChars- the String to use for indentation at this level.
-
Context
Deprecated.Creates a new context.- Parameters:
parentContext- the parent context that can be used for going back up to the parent levelcontextType- the type of this context
-
-
Method Details
-
getParentContext
Deprecated.Description copied from class:AbstractBsonWriter.ContextReturns the parent context. Allows users of this context object to transition to this parent context.- Overrides:
getParentContextin classAbstractBsonWriter.Context- Returns:
- the context that came before this one
-