src/main/java/com/bazaarvoice/jackson/rison/RisonParser.java
@Override
    public Boolean nextBooleanValue()
            throws IOException, JsonParseException
    {
        if (_currToken == JsonToken.FIELD_NAME) { // mostly copied from '_nextAfterName'
            _nameCopied = false;
            JsonToken t = _nextToken;
            _nextToken = null;
            _currToken = t;
            if (t == JsonToken.VALUE_TRUE) {
                return Boolean.TRUE;
            }
            if (t == JsonToken.VALUE_FALSE) {
                return Boolean.FALSE;
            }
            if (t == JsonToken.START_ARRAY) {
                _parsingContext = _parsingContext.createChildArrayContext(_tokenInputRow, _tokenInputCol);
            } else if (t == JsonToken.START_OBJECT) {
                _parsingContext = _parsingContext.createChildObjectContext(_tokenInputRow, _tokenInputCol);
            }
            return null;
        }
        switch (nextToken()) {
            case VALUE_TRUE:
                return Boolean.TRUE;
            case VALUE_FALSE:
                return Boolean.FALSE;
        }
        return null;
    }
@Override
    public Boolean nextBooleanValue()
            throws IOException, JsonParseException
    {
        if (_currToken == JsonToken.FIELD_NAME) { // mostly copied from '_nextAfterName'
            _nameCopied = false;
            JsonToken t = _nextToken;
            _nextToken = null;
            _currToken = t;
            if (t == JsonToken.VALUE_TRUE) {
                return Boolean.TRUE;
            }
            if (t == JsonToken.VALUE_FALSE) {
                return Boolean.FALSE;
            }
            if (t == JsonToken.START_ARRAY) {
                _parsingContext = _parsingContext.createChildArrayContext(_tokenInputRow, _tokenInputCol);
            } else if (t == JsonToken.START_OBJECT) {
                _parsingContext = _parsingContext.createChildObjectContext(_tokenInputRow, _tokenInputCol);
            }
            return null;
        }
        switch (nextToken()) {
            case VALUE_TRUE:
                return Boolean.TRUE;
            case VALUE_FALSE:
                return Boolean.FALSE;
        }
        return null;
    }
@ Override public Boolean nextBooleanValue ( ) throws IOException , JsonParseException { if ( _currToken == JsonToken . FIELD_NAME ) { // mostly copied from '_nextAfterName' _nameCopied = false ; JsonToken t = _nextToken ; _nextToken = null ; _currToken = t ; if ( t == JsonToken . VALUE_TRUE ) { return Boolean . TRUE ; } if ( t == JsonToken . VALUE_FALSE ) { return Boolean . FALSE ; } if ( t == JsonToken . START_ARRAY ) { _parsingContext = _parsingContext . createChildArrayContext ( _tokenInputRow , _tokenInputCol ) ; } else if ( t == JsonToken . START_OBJECT ) { _parsingContext = _parsingContext . createChildObjectContext ( _tokenInputRow , _tokenInputCol ) ; } return null ; } switch ( nextToken ( ) ) { case VALUE_TRUE : return Boolean . TRUE ; case VALUE_FALSE : return Boolean . FALSE ; } return null ; }
note: identical to one in Utf8StreamParser
note : identical to one in Utf8StreamParser