|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.hssf.eventusermodel.examples.XLS2CSVmra
public class XLS2CSVmra
A XLS -> CSV processor, that uses the MissingRecordAware EventModel code to ensure it outputs all columns and rows.
| Constructor Summary | |
|---|---|
XLS2CSVmra(POIFSFileSystem fs,
java.io.PrintStream output,
int minColumns)
Creates a new XLS -> CSV converter |
|
XLS2CSVmra(java.lang.String filename,
int minColumns)
Creates a new XLS -> CSV converter |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XLS2CSVmra(POIFSFileSystem fs,
java.io.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 minimum
public XLS2CSVmra(java.lang.String filename,
int minColumns)
throws java.io.IOException,
java.io.FileNotFoundException
filename - The file to processminColumns - The minimum number of columns to output, or -1 for no minimum
java.io.IOException
java.io.FileNotFoundException| Method Detail |
|---|
public void process()
throws java.io.IOException
java.io.IOExceptionpublic void processRecord(Record record)
processRecord in interface HSSFListener
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||