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  Contextinto a new instance. | 
| BsonBinaryWriter.Context | getParentContext()Returns the parent context. | 
getContextTypepublic 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.ContextgetParentContext in class AbstractBsonWriter.Contextpublic BsonBinaryWriter.Context copy()
AbstractBsonWriter.ContextContext into a new instance.copy in class AbstractBsonWriter.Context