protected class BsonBinaryWriter.Context extends AbstractBsonWriter.Context
Constructor and Description |
---|
Context(BsonBinaryWriter.Context from)
Creates a new instance by copying the values from the given context.
|
Context(BsonBinaryWriter.Context parentContext,
BsonContextType contextType,
int startPosition)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
BsonBinaryWriter.Context |
copy()
Copies the values from this
Context into a new instance. |
BsonBinaryWriter.Context |
getParentContext()
Returns the parent context.
|
getContextType
public Context(BsonBinaryWriter.Context parentContext, BsonContextType contextType, int startPosition)
parentContext
- the context of the parent nodecontextType
- the type of this contextstartPosition
- the position of the output stream of this writer.public Context(BsonBinaryWriter.Context from)
from
- the Context to copy.public BsonBinaryWriter.Context getParentContext()
AbstractBsonWriter.Context
getParentContext
in class AbstractBsonWriter.Context
public BsonBinaryWriter.Context copy()
AbstractBsonWriter.Context
Context
into a new instance.copy
in class AbstractBsonWriter.Context