fitgoodies-core/src/main/java/de/cologneintelligence/fitgoodies/runners/FitFileRunner.java
@Override
	public final Counts run(final File inputFile, final File outputFile) {
		Counts result = null;

		FileSystemDirectoryHelper dirHelper = new FileSystemDirectoryHelper();
		RunnerHelper currentRunner = DependencyManager.getOrCreate(RunnerHelper.class);
		RunnerHelper helper = new RunnerHelper();

		DependencyManager.inject(RunnerHelper.class, helper);

		helper.setFile(dirHelper.rel2abs(System.getProperty("user.dir"),
				inputFile.toString()));
		helper.setResultFile(dirHelper.rel2abs(System.getProperty("user.dir"),
				outputFile.toString()));
		helper.setRunner(this);
		helper.setHelper(dirHelper);

		try {
			result = process(inputFile, outputFile);
		} catch (Exception e) {
			System.err.printf("%s while processing %s -> %s%n", e, inputFile, outputFile);
			System.err.println(e.getMessage());
			e.printStackTrace();
		} finally {
			DependencyManager.inject(RunnerHelper.class, currentRunner);
		}

		return result;
	}
@Override
	public final Counts run(final File inputFile, final File outputFile) {
		Counts result = null;

		FileSystemDirectoryHelper dirHelper = new FileSystemDirectoryHelper();
		RunnerHelper currentRunner = DependencyManager.getOrCreate(RunnerHelper.class);
		RunnerHelper helper = new RunnerHelper();

		DependencyManager.inject(RunnerHelper.class, helper);

		helper.setFile(dirHelper.rel2abs(System.getProperty("user.dir"),
				inputFile.toString()));
		helper.setResultFile(dirHelper.rel2abs(System.getProperty("user.dir"),
				outputFile.toString()));
		helper.setRunner(this);
		helper.setHelper(dirHelper);

		try {
			result = process(inputFile, outputFile);
		} catch (Exception e) {
			System.err.printf("%s while processing %s -> %s%n", e, inputFile, outputFile);
			System.err.println(e.getMessage());
			e.printStackTrace();
		} finally {
			DependencyManager.inject(RunnerHelper.class, currentRunner);
		}

		return result;
	}
@ Override public final Counts run ( final File inputFile , final File outputFile ) { Counts result = null ; FileSystemDirectoryHelper dirHelper = new FileSystemDirectoryHelper ( ) ; RunnerHelper currentRunner = DependencyManager . getOrCreate ( RunnerHelper . class ) ; RunnerHelper helper = new RunnerHelper ( ) ; DependencyManager . inject ( RunnerHelper . class , helper ) ; helper . setFile ( dirHelper . rel2abs ( System . getProperty ( "user.dir" ) , inputFile . toString ( ) ) ) ; helper . setResultFile ( dirHelper . rel2abs ( System . getProperty ( "user.dir" ) , outputFile . toString ( ) ) ) ; helper . setRunner ( this ) ; helper . setHelper ( dirHelper ) ; try { result = process ( inputFile , outputFile ) ; } catch ( Exception e ) { System . err . printf ( "%s while processing %s -> %s%n" , e , inputFile , outputFile ) ; System . err . println ( e . getMessage ( ) ) ; e . printStackTrace ( ) ; } finally { DependencyManager . inject ( RunnerHelper . class , currentRunner ) ; } return result ; }
Processes {@code inputFile}, write output to {@code outputFile}
and return the resulting counts using most of fit's default components.

@param inputFile  file to process
@param outputFile file to write output to
@return resulting counts
Processes { @code inputFile } write output to { @code outputFile } and return the resulting counts using most of fit s default components .