public class FixedLengthListBinder extends Object
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); } }
Constructor and Description |
---|
FixedLengthListBinder(String fields,
Class recordType) |
Modifier and Type | Method and Description |
---|---|
List |
bind(InputStream fixedLengthStream) |
List |
bind(Reader fixedLengthStream) |
Copyright © 2020. All rights reserved.