I'm working on a batch using spring-batch with one reader, one writer ,one processor. I have one CSV file as an input of my reader.
I wanted to use OpenCSV to convert one line to one bean but what i see from the documentation is that OpenCsv take one file and use the object CsvToBeanBuilder to map all the line of one file to a list of object.
I saw this post : Configuring openCSV instead of FlatFileItemReader in spring batch step
but there is no explanation on how to map one String line to a Bean object using opencsv. Do someone know if it's possible? thanks.