@Override public void run() throws IOException {
  final File dir=mParams.directory();
  if (!dir.exists() && !dir.mkdirs()) {
    throw new NoTalkbackSlimException(ErrorType.DIRECTORY_NOT_CREATED,dir.getPath());
  }
  try {
    exec();
    mStatistics.printStatistics(mReportStream);
    mStatistics.generateReport();
  }
  finally {
    mParams.close();
  }
}

@ Override public void run ( ) throws IOException { final File dir = mParams . directory ( ) ; if ( ! dir . exists ( ) && ! dir . mkdirs ( ) ) { throw new NoTalkbackSlimException ( ErrorType . DIRECTORY_NOT_CREATED , dir . getPath ( ) ) ; } try { exec ( ) ; mStatistics . printStatistics ( mReportStream ) ; mStatistics . generateReport ( ) ; } finally { mParams . close ( ) ; } }
execute the current task . does not return until the task ( including possible subtasks ) have completed . this implementation manages creation of the output directory , calling the exec method , creating a done file , and closing the params upon completion .
