Package | Description |
---|---|
org.bson |
This package contains bson classes required for the driver
|
Modifier and Type | Method and Description |
---|---|
protected AbstractBsonWriter.State |
AbstractBsonWriter.getNextState()
Returns the next valid state for this writer.
|
protected AbstractBsonWriter.State |
AbstractBsonWriter.getState()
Gets the current state of this writer.
|
static AbstractBsonWriter.State |
AbstractBsonWriter.State.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AbstractBsonWriter.State[] |
AbstractBsonWriter.State.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractBsonWriter.checkPreconditions(String methodName,
AbstractBsonWriter.State... validStates)
Checks the writer is in the correct state.
|
protected boolean |
AbstractBsonWriter.checkState(AbstractBsonWriter.State[] validStates)
Checks if this writer's current state is in the list of given states.
|
protected void |
AbstractBsonWriter.setState(AbstractBsonWriter.State state)
Sets the current state of the writer.
|
protected void |
AbstractBsonWriter.throwInvalidState(String methodName,
AbstractBsonWriter.State... validStates)
Throws a
BsonInvalidOperationException when the method called is not valid for the current state. |
Copyright © 2016. All Rights Reserved.