code: private String getNextLine(BufferedReader reader) throws Exception {
          String line = reader.readLine();
          if (line != null) {
              return line;
          } else {
              throw new Exception("Error parsing server status file (unexpectedly ended): "
                      + _file.getPath());
          }
      }
docs: get the next line or throw an exception if eof was reached