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 - its AbstractBsonWriter.Context, AbstractBsonWriter.State, field name and depth.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Creates a new snapshopt of the current state.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Resets the AbstractBsonWriter instance that contains this Mark to the state the writer was in when the Mark was created.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Mark

      protected Mark()
      Creates a new snapshopt of the current state.
  • Method Details

    • reset

      protected void reset()
      Resets the AbstractBsonWriter instance that contains this Mark to the state the writer was in when the Mark was created.