org.shapelogic.loader
Class CSVParser

java.lang.Object
  extended by org.shapelogic.loader.CSVParser

public class CSVParser
extends java.lang.Object

This should read a csv file and parse it into objects of an given class or into DynaBean It assumes that the first time is the heading with the right name the second line is the type of each field.

Author:
Sami Badawi

Constructor Summary
CSVParser(java.io.Reader in, java.lang.Class resultClass)
           
 
Method Summary
 java.util.List parseAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVParser

public CSVParser(java.io.Reader in,
                 java.lang.Class resultClass)
Method Detail

parseAll

public java.util.List parseAll()
                        throws java.io.IOException,
                               java.lang.IllegalAccessException,
                               java.lang.reflect.InvocationTargetException,
                               java.lang.NoSuchMethodException,
                               java.lang.InstantiationException,
                               java.text.ParseException
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.text.ParseException


Copyright © 2009. All Rights Reserved.