public boolean nextLine() throws IOException {
  while (reader.readLine(buf.delete(0,buf.length()))) {
    ++lineNumber;
    if (lengthWithoutLinefeed(buf) > 0) {
      return true;
    }
  }
  return false;
}

public boolean nextLine ( ) throws IOException { while ( reader . readLine ( buf . delete ( 0 , buf . length ( ) ) ) ) { ++ lineNumber ; if ( lengthWithoutLinefeed ( buf ) > 0 ) { return true ; } } return false ; }
read the next line .
