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 | Description |
---|---|
Contextβ(JsonWriter.Context parentContext,
BsonContextType contextType) |
Creates a new context.
|
Contextβ(JsonWriter.Context parentContext,
BsonContextType contextType,
String indentChars) |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
JsonWriter.Context |
getParentContextβ() |
Returns the parent context.
|
copy, getContextType
@Deprecated public Contextβ(JsonWriter.Context parentContext, BsonContextType contextType, 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