com.rapidminer.gui.tools.dialogs.wizards.dataimport.csv
Class CSVFileReader

java.lang.Object
  extended by com.rapidminer.gui.tools.dialogs.wizards.dataimport.csv.CSVFileReader

public class CSVFileReader
extends java.lang.Object

A helper class for reading CSV files

Author:
Tobias Malbrecht

Constructor Summary
CSVFileReader(java.io.File file, boolean useFirstRowAsColumnNames, LineParser parser, java.text.NumberFormat numberFormat)
           
 
Method Summary
 ExampleSet createExampleSet()
           
 java.util.Iterator<java.lang.String[]> getDataReader()
           
 DataRowReader getDataRowReader(java.util.List<Attribute> attributeList)
           
 MetaData getMetaData()
           
 java.util.LinkedList<java.lang.String[]> readData(int maxLines)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVFileReader

public CSVFileReader(java.io.File file,
                     boolean useFirstRowAsColumnNames,
                     LineParser parser,
                     java.text.NumberFormat numberFormat)
Method Detail

readData

public java.util.LinkedList<java.lang.String[]> readData(int maxLines)
                                                  throws java.io.IOException
Throws:
java.io.IOException

getMetaData

public MetaData getMetaData()
                     throws java.io.IOException
Throws:
java.io.IOException

createExampleSet

public ExampleSet createExampleSet()
                            throws java.io.IOException
Throws:
java.io.IOException

getDataReader

public java.util.Iterator<java.lang.String[]> getDataReader()
                                                     throws java.io.IOException
Throws:
java.io.IOException

getDataRowReader

public DataRowReader getDataRowReader(java.util.List<Attribute> attributeList)
                               throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2001-2009 by Rapid-I