protected char skipAllWhitespace(Reader r) throws IOException {
  char c;
  do {
    c=(char)r.read();
  }
 while (Character.isWhitespace(c) && c != (char)-1);
  return c;
}

protected char skipAllWhitespace ( Reader r ) throws IOException { char c ; do { c = ( char ) r . read ( ) ; } while ( Character . isWhitespace ( c ) && c != ( char ) - 1 ) ; return c ; }
skips all consecutive whitespace characters from reader
