public void skipWhile(String skip) throws IOException {
  char ch;
  do {
    ch=read();
  }
 while (skip.indexOf(ch) > -1);
  unreadCharacter(ch);
}

public void skipWhile ( String skip ) throws IOException { char ch ; do { ch = read ( ) ; } while ( skip . indexOf ( ch ) > - 1 ) ; unreadCharacter ( ch ) ; }
skips char any contiguous characters in skip . will also skip comments .
