public class JsonWriter.Context extends AbstractBsonWriterContext
Modifiers | Name | Description |
---|---|---|
private boolean |
hasElements |
|
private java.lang.String |
indentation |
Constructor and description |
---|
Context
(JsonWriter.Context parentContext, org.bson.BsonContextType contextType, java.lang.String indentChars) Creates a new context. |
Type Params | Return Type | Name and description |
---|---|---|
|
public JsonWriter.Context |
getParentContext() |
Creates a new context.
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.