public class JsonWriter.Context extends AbstractBsonWriter.Context
AbstractBsonWriter.Context
, and additionally providing
settings for the indentation level and whether there are any child elements at this level.Constructor and Description |
---|
Context(JsonWriter.Context parentContext,
BsonContextType contextType)
Creates a new context.
|
Context(JsonWriter.Context parentContext,
BsonContextType contextType,
java.lang.String indentChars)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
JsonWriter.Context |
getParentContext()
Returns the parent context.
|
copy, getContextType
@Deprecated public Context(JsonWriter.Context parentContext, BsonContextType contextType, java.lang.String indentChars)
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.public Context(JsonWriter.Context parentContext, BsonContextType contextType)
parentContext
- the parent context that can be used for going back up to the parent levelcontextType
- the type of this contextpublic JsonWriter.Context getParentContext()
AbstractBsonWriter.Context
getParentContext
in class AbstractBsonWriter.Context
Copyright © 2010 - 2020 Adobe. All Rights Reserved