Save This Page
Home » poi-src-3.2-FINAL-20081019 » org.apache » poi » hssf » eventusermodel » examples » [javadoc | source]
org.apache.poi.hssf.eventusermodel.examples
public class: XLS2CSVmra [javadoc | source]
java.lang.Object
   org.apache.poi.hssf.eventusermodel.examples.XLS2CSVmra

All Implemented Interfaces:
    HSSFListener

A XLS -> CSV processor, that uses the MissingRecordAware EventModel code to ensure it outputs all columns and rows.
Constructor:
 public XLS2CSVmra(String filename,
    int minColumns) throws IOException, FileNotFoundException 
    Creates a new XLS -> CSV converter
    Parameters:
    filename - The file to process
    minColumns - The minimum number of columns to output, or -1 for no minimum
    Throws:
    IOException -
    FileNotFoundException -
 public XLS2CSVmra(POIFSFileSystem fs,
    PrintStream output,
    int minColumns) 
    Creates a new XLS -> CSV converter
    Parameters:
    fs - The POIFSFileSystem to process
    output - The PrintStream to output the CSV to
    minColumns - The minimum number of columns to output, or -1 for no minimum
Method from org.apache.poi.hssf.eventusermodel.examples.XLS2CSVmra Summary:
main,   process,   processRecord
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.poi.hssf.eventusermodel.examples.XLS2CSVmra Detail:
 public static  void main(String[] args) throws Exception 
 public  void process() throws IOException 
    Initiates the processing of the XLS file to CSV
 public  void processRecord(Record record) 
    Main HSSFListener method, processes events, and outputs the CSV as the file is processed.