Package org.bson
Class BsonDocumentReader.Context
java.lang.Object
org.bson.AbstractBsonReader.Context
org.bson.BsonDocumentReader.Context
- Enclosing class:
- BsonDocumentReader
An implementation of
AbstractBsonReader.Context
.-
Constructor Summary
ModifierConstructorDescriptionprotected
Context
(BsonDocumentReader.Context parentContext, BsonContextType contextType, BsonArray array) Construct an instance.protected
Context
(BsonDocumentReader.Context parentContext, BsonContextType contextType, BsonDocument document) Construct an instance. -
Method Summary
Methods inherited from class org.bson.AbstractBsonReader.Context
getContextType, getParentContext
-
Constructor Details
-
Context
protected Context(BsonDocumentReader.Context parentContext, BsonContextType contextType, BsonArray array) Construct an instance.- Parameters:
parentContext
- the parent contextcontextType
- the context typearray
- the array context
-
Context
protected Context(BsonDocumentReader.Context parentContext, BsonContextType contextType, BsonDocument document) Construct an instance.- Parameters:
parentContext
- the parent contextcontextType
- the context typedocument
- the document context
-
-
Method Details
-
getNextElement
Gets the next element.- Returns:
- the next element, which may be null
-
mark
protected void mark()Create a mark. -
reset
protected void reset()Reset the context. -
getNextValue
Gets the next value.- Returns:
- the next value, which may be null
-