public String getString ( ) throws IOException { Token next = get ( ) ; if ( ! next . isString ( ) ) { throw exception ( "expected a string" ) ; } return next . value ; }
Gets the next token from a tokenizer and converts it to a string .