public class FixedLengthMapBinder extends Object
Map
Binder class.
Simple Fixed Length records to Object Map
binding class.
Exmaple usage:
public class PeopleBinder { // Create and cache the binder instance.. private FixedLengthMapBinder binder = new FixedLengthMapBinder("firstname[10],lastname[10],gender[1],age[3],country[2]", Person.class, "firstname"); public Map<String, Person> bind(Reader fixedLengthStream) { return binder.bind(fixedLengthStream); } }
Constructor and Description |
---|
FixedLengthMapBinder(String fields,
Class recordType,
String keyField) |
Modifier and Type | Method and Description |
---|---|
Map |
bind(InputStream fixedLengthStream) |
Map |
bind(Reader fixedLengthStream) |
Copyright © 2020. All rights reserved.