Package org.bson
Class AbstractBsonReader.Mark
java.lang.Object
org.bson.AbstractBsonReader.Mark
- All Implemented Interfaces:
BsonReaderMark
- Direct Known Subclasses:
BsonBinaryReader.Mark
,BsonDocumentReader.Mark
,JsonReader.Mark
- Enclosing class:
- AbstractBsonReader
An implementation of
BsonReaderMark
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BsonContextType
Gets the context type.protected AbstractBsonReader.Context
Gets the parent context.void
reset()
Reset theBsonReader
to its state at the time the mark was created.
-
Constructor Details
-
Mark
protected Mark()Construct an instance.
-
-
Method Details
-
getParentContext
Gets the parent context.- Returns:
- the parent context
-
getContextType
Gets the context type.- Returns:
- the context type
-
reset
public void reset()Description copied from interface:BsonReaderMark
Reset theBsonReader
to its state at the time the mark was created.- Specified by:
reset
in interfaceBsonReaderMark
-