The context for the writer, inheriting all the values from org.bson.AbstractBsonWriter.Context, and additionally providing settings for the indentation level and whether there are any child elements at this level.
Constructor and description |
---|
JsonWriter.Context
(Context parentContext, org.bson.BsonContextType contextType, java.lang.String indentChars) Creates a new context. |
Type Params | Return Type | Name and description |
---|---|---|
|
Context |
getParentContext() |
Methods inherited from class | Name |
---|---|
class org.bson.AbstractBsonWriter$Context |
org.bson.AbstractBsonWriter$Context#getParentContext(), org.bson.AbstractBsonWriter$Context#getContextType(), org.bson.AbstractBsonWriter$Context#copy(), org.bson.AbstractBsonWriter$Context#wait(long, int), org.bson.AbstractBsonWriter$Context#wait(long), org.bson.AbstractBsonWriter$Context#wait(), org.bson.AbstractBsonWriter$Context#equals(java.lang.Object), org.bson.AbstractBsonWriter$Context#toString(), org.bson.AbstractBsonWriter$Context#hashCode(), org.bson.AbstractBsonWriter$Context#getClass(), org.bson.AbstractBsonWriter$Context#notify(), org.bson.AbstractBsonWriter$Context#notifyAll() |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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.