ReadWrite rw = new ReadWrite(file, outputFile);
rw.readWrite();
}
else if (formulas)
{
Workbook w = Workbook.getWorkbook(new File(file));
Formulas f = new Formulas(w, System.out, encoding);
w.close();
}
else if (features)
{
Workbook w = Workbook.getWorkbook(new File(file));
Features f = new Features(w, System.out, encoding);
w.close();
}
else if (escher)
{
Workbook w = Workbook.getWorkbook(new File(file));
Escher f = new Escher(w, System.out, encoding);
w.close();
}
else if (escherdg)
{
Workbook w = Workbook.getWorkbook(new File(file));
EscherDrawingGroup f = new EscherDrawingGroup(w, System.out, encoding);
w.close();
}
else if (biffdump)
{
BiffDump bd = new BiffDump(new File(file), System.out);
}
else if (jxlversion)
{
WriteAccess bd = new WriteAccess(new File(file));
}
else if (propertysets)
{
OutputStream os = System.out;
if (outputFile != null)
{
os = new FileOutputStream(outputFile);
}
PropertySetsReader psr = new PropertySetsReader(new File(file),
propertySet,
os);
}
else
{
Workbook w = Workbook.getWorkbook(new File(file));
// findTest(w);
if (format == CSVFormat)
{
CSV csv = new CSV(w, System.out, encoding, hideCells);
}
else if (format == XMLFormat)
{
XML xml = new XML(w, System.out, encoding, formatInfo);
}
w.close();
}
}
catch (Throwable t)
{
System.out.println(t.toString());