Package org.bson.json
Class JsonReader.Mark
java.lang.Object
org.bson.AbstractBsonReader.Mark
org.bson.json.JsonReader.Mark
- All Implemented Interfaces:
BsonReaderMark
- Enclosing class:
- JsonReader
An implementation of
AbstractBsonReader.Mark
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
discard()
Discard the mark.void
reset()
Reset theBsonReader
to its state at the time the mark was created.Methods inherited from class org.bson.AbstractBsonReader.Mark
getContextType, getParentContext
-
Constructor Details
-
Mark
protected Mark()Construct an instance.
-
-
Method Details
-
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
- Overrides:
reset
in classAbstractBsonReader.Mark
-
discard
public void discard()Discard the mark.
-