INNER CODE UNIT · Java
getCurrentName
mongodb/mongo-java-driver · bson/src/main/org/bson/AbstractBsonReader.java:49
public String getCurrentName() {
if (state != State.VALUE) {
throwInvalidState("getCurrentName", State.VALUE);
}
return currentName;
}
/**
* Sets the type of the current value being read.
*
* @param newType the BSON Type.
*/
protected void setCurrentBsonType(final BsonType newType) {
currentBsonType = newType;
}
/**
* @return The current state of the reader.