private void skipToEndOfLine(){
  for (; pos < in.length(); pos++) {
    char c=in.charAt(pos);
    if (c == '\r' || c == '\n') {
      pos++;
      break;
    }
  }
}

private void skipToEndOfLine ( ) { for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . charAt ( pos ) ; if ( c == '\r' || c == '\n' ) { pos ++ ; break ; } } }
advances the position until after the next newline character . if the line is terminated by " \ r \ n " , the ' \ n ' must be consumed as whitespace by the caller .
