protected String nextLetterNumber ( int c ) throws IOException { //StringBuilder isb = new StringBuilder(); isb . clear ( ) ; isb . append ( ( char ) c ) ; int ch ; while ( ( ch = readNext ( ) ) != - 1 ) { if ( StringUtil . isWhitespace ( ch ) ) { pushBack ( ch ) ; break ; } if ( ! StringUtil . isLetterNumber ( ch ) ) { pushBack ( ch ) ; break ; } isb . append ( ( char ) ch ) ; } return isb . toString ( ) ; }
find the next other letter from the current position find the letter number from the current position count until the char in the specified position is not a letter number or whitespace