org.milyn.fixedlength.prog
Class FixedLengthListBinder
java.lang.Object
org.milyn.fixedlength.prog.FixedLengthListBinder
public class FixedLengthListBinder
- extends java.lang.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
|
Method Summary |
java.util.List |
bind(java.io.InputStream fixedLengthStream)
|
java.util.List |
bind(java.io.Reader fixedLengthStream)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FixedLengthListBinder
public FixedLengthListBinder(java.lang.String fields,
java.lang.Class recordType)
bind
public java.util.List bind(java.io.Reader fixedLengthStream)
bind
public java.util.List bind(java.io.InputStream fixedLengthStream)
Copyright © 2011. All Rights Reserved.