return parse(new FileInputStream(file));
}
public SaikuroResult parse(InputStream input) throws IOException {
try {
SaikuroResult result = new SaikuroResult();
Parser parser = initParser(getHtml(input));
TableTag report = getReportTable(parser);
if (report.getRowCount() > 0) {
//row at 0 is the header row
for (int i = 1; i < report.getRowCount(); i++) {
result.addFile(parseRow(report.getRow(i)));
}
}
return result;