protected class BsonBinaryWriter.Context extends AbstractBsonWriter.Context
| 构造器和说明 |
|---|
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
|
| 限定符和类型 | 方法和说明 |
|---|---|
BsonBinaryWriter.Context |
copy()
Copies the values from this
Context into 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 在类中 AbstractBsonWriter.Contextpublic BsonBinaryWriter.Context copy()
AbstractBsonWriter.ContextContext into a new instance.copy 在类中 AbstractBsonWriter.Context