org.milyn.fixedlength.prog
Class FixedLengthListBinder

java.lang.Object
  extended by org.milyn.fixedlength.prog.FixedLengthListBinder

public class FixedLengthListBinder
extends Object

Fixed Length List Binder class.

Simple Fixed Length records to Object List binding class.

Exmaple usage:

 public class PeopleBinder {
     // Create and cache the binder instance..
     private FixedLengthListBinder binder = new FixedLengthListBinder("firstname[10],lastname[10],gender[1],age[3],country[2]", Person.class);

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

Author:
maurice.zeijen@smies.com

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

Constructor Detail

FixedLengthListBinder

public FixedLengthListBinder(String fields,
                             Class recordType)
Method Detail

bind

public List bind(Reader fixedLengthStream)

bind

public List bind(InputStream fixedLengthStream)


Copyright © 2014. All Rights Reserved.