data.importers
Class ImporterCSV

java.lang.Object
  extended by data.importers.ImporterCSV

public class ImporterCSV
extends java.lang.Object

Importer for .CSV (comma separated values) files. It uses "javacsv" library to help reading .CSV file. The format of the source file is detailed in the users manual of the project

Version:
1.0
Author:
Oscar Flores

Nested Class Summary
static class ImporterCSV.MatrixFileFilterCSV
          A kind of FileFilter that accept .CSV filetypes
 
Constructor Summary
ImporterCSV()
           
 
Method Summary
static Matrix importFile(java.io.File f)
          Parses the data and put it in the new Matrix object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImporterCSV

public ImporterCSV()
Method Detail

importFile

public static Matrix importFile(java.io.File f)
                         throws DataException
Parses the data and put it in the new Matrix object

Parameters:
f - The file to be parsed
Returns:
The new Matrix with the imported data
Throws:
DataException