public class XLS2CSVmra extends Object implements HSSFListener
| Constructor and Description |
|---|
XLS2CSVmra(POIFSFileSystem fs,
PrintStream output,
int minColumns)
Creates a new XLS -> CSV converter
|
XLS2CSVmra(String filename,
int minColumns)
Creates a new XLS -> CSV converter
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
void |
process()
Initiates the processing of the XLS file to CSV
|
void |
processRecord(Record record)
Main HSSFListener method, processes events, and outputs the
CSV as the file is processed.
|
public XLS2CSVmra(POIFSFileSystem fs, PrintStream output, int minColumns)
fs - The POIFSFileSystem to processoutput - The PrintStream to output the CSV tominColumns - The minimum number of columns to output, or -1 for no minimumpublic XLS2CSVmra(String filename, int minColumns) throws IOException
filename - The file to processminColumns - The minimum number of columns to output, or -1 for no minimumIOException - if the file cannot be read or parsing the file failspublic void process()
throws IOException
IOException - if the workbook contained errorspublic void processRecord(Record record)
processRecord in interface HSSFListener