Univocity parser - parse csv row into existing bean instance
Solution 1:
Currently, the only way to do it would be by overriding the createBean
method of BeanProcessor
or BeanListProcessor
(whichever you are using):
BeanListProcessor<Car> carProcessor = new BeanListProcessor<Car>(Car.class){
@Override
public Car createBean(String[] row, Context context) {
//analyze the row here to determine whether to return an existing instance
//if you need a new instance, call super.createBean(row, context);
}
};
Hope this helps.