INNER CODE UNIT · Java

getCurrentBsonType

mongodb/mongo-java-driver · bson/src/main/org/bson/AbstractBsonReader.java:44

    public BsonType getCurrentBsonType() {
        return currentBsonType;
    }

    @Override
    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) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…