Package org.bson
Class AbstractBsonWriter.Mark
- java.lang.Object
-
- org.bson.AbstractBsonWriter.Mark
-
- Direct Known Subclasses:
BsonBinaryWriter.Mark
- Enclosing class:
- AbstractBsonWriter
protected class AbstractBsonWriter.Mark extends Object
Capture the current state of this writer - itsAbstractBsonWriter.Context
,AbstractBsonWriter.State
, field name and depth.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Mark()
Creates a new snapshopt of the current state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
reset()
Resets theAbstractBsonWriter
instance that contains thisMark
to the state the writer was in when the Mark was created.
-