protected void skipUntil(Reader r,char until) throws IOException {
  char c;
  do {
    c=(char)r.read();
  }
 while (c != until && c != (char)-1);
}

protected void skipUntil ( Reader r , char until ) throws IOException { char c ; do { c = ( char ) r . read ( ) ; } while ( c != until && c != ( char ) - 1 ) ; }
reads and skips all characters until character " until " is read or end of stream is reached . also the expected character is discarded .
