if (delimeter != null) {
handler.setDelimeter(delimeter);
}
IEIndexFileParser logparser = null;
if (fileType == null) {
System.err.println("Using cache file parser.");
logparser = new IECacheFileParser(fileName, fr, handler);
} else if (fileType.equals("cache")) {
logparser = new IECacheFileParser(fileName, fr, handler);
} else if (fileType.equals("history")) {
logparser = new IEHistoryFileParser(fileName, fr, handler);
} else {
System.err.println("Unsupported file type.");
HelpFormatter formatter = new HelpFormatter();
formatter.printHelp( "pasco2", options );
System.exit(1);
}
if (disableAllocationTest) {
logparser.setDisableAllocationTest(true);
}
logparser.parseFile();
} catch (Exception ex) {
System.err.println(ex.getMessage());
ex.printStackTrace();
}