protected int skipLine(int c) throws IOException {
  while (c != -1 && c != '\r' && c != '\n') {
    c=reader.read();
  }
  if (c == '\n') {
    c=reader.read();
    lineNo++;
    reportLocation(lineNo,1);
  }
 else   if (c == '\r') {
    c=reader.read();
    if (c == '\n') {
      c=reader.read();
    }
    lineNo++;
    reportLocation(lineNo,1);
  }
  return c;
}

protected int skipLine ( int c ) throws IOException { while ( c != - 1 && c != '\r' && c != '\n' ) { c = reader . read ( ) ; } if ( c == '\n' ) { c = reader . read ( ) ; lineNo ++ ; reportLocation ( lineNo , 1 ) ; } else if ( c == '\r' ) { c = reader . read ( ) ; if ( c == '\n' ) { c = reader . read ( ) ; } lineNo ++ ; reportLocation ( lineNo , 1 ) ; } return c ; }
reads characters from reader until the first eol has been read . the first character after the eol is returned . in case the end of the character stream has been reached , - 1 is returned .
