org.milyn.csv.prog
Class CSVListBinder

java.lang.Object
  extended by org.milyn.csv.prog.CSVListBinder

public class CSVListBinder
extends java.lang.Object

CSV List Binder class.

Simple CSV to Object List binding class.

Exmaple usage:

 public class PeopleBinder {
     // Create and cache the binder instance..
     private CSVListBinder binder = new CSVListBinder("firstname,lastname,gender,age,country", Person.class);

     public List<Person> bind(Reader csvStream) {
         return binder.bind(csvStream);
     }
 }
 

Author:
tom.fennelly@jboss.com

Constructor Summary
CSVListBinder(java.lang.String fields, java.lang.Class recordType)
           
 
Method Summary
 java.util.List bind(java.io.InputStream csvStream)
           
 java.util.List bind(java.io.Reader csvStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVListBinder

public CSVListBinder(java.lang.String fields,
                     java.lang.Class recordType)
Method Detail

bind

public java.util.List bind(java.io.Reader csvStream)

bind

public java.util.List bind(java.io.InputStream csvStream)


Copyright © 2011. All Rights Reserved.