@@ -0,0 +1,1062 @@
+package com.grayben.riskExtractor;%0A%0Aimport java.io.File;%0A%0Aimport com.grayben.riskExtractor.htmlScorer.HtmlScorer;%0Aimport com.grayben.riskExtractor.htmlScorer.ArrayListScoredText;%0Aimport com.grayben.riskExtractor.htmlScorer.TreeHtmlScorer;%0A%0Apublic class RiskExtractor %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09long startTime = System.currentTimeMillis();%0A%09%09checkArgs(args);%0A%09%09String fileName = args%5B0%5D;%0A%09%09File htmlFile = new File(fileName);%0A%09%09String charsetName = args%5B1%5D;%0A%09%09HtmlScorer scorer = new TreeHtmlScorer();%0A%09%09ArrayListScoredText scoredText = scorer.scoreHtml(htmlFile, charsetName);%0A%09%09System.out.print(scoredText.toString());%0A%09%09System.out.println();%0A%09%09System.out.println(%22Program finished.%22);%0A%09%09long endTime = System.currentTimeMillis();%0A%09%09long secondsElapsed = (endTime - startTime)/1000;%0A%09%09System.out.println(%22Time elapsed: %22 + secondsElapsed);%0A%0A%09%7D%0A%09%0A%09private static void checkArgs(String%5B%5D args)%7B%0A%09%09int argsLen = 2;%0A%09%09if(args.length != argsLen)%7B%0A%09%09%09System.err.println(%22ERROR: must pass %22 + argsLen + %22 arguments.%22);%0A%09%09%09System.exit(1);%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Add driving class with main method