Spring batch FlatFileItemReader supports two files formats by default, Fix length and delimiter separated. e.g
id name email
1 name1 [email protected]
2 name2 [email protected]
So it will consider each line as an item and fields as properties of item (domain) object.
My input file has just ids separated by space or comma as I just need ids (or it could be anything unique for each item like username or email etc) e.g
1,2,3,4,5,6
7,8,9, ...... so on
or
username1, username2, username3, username4 .. so on
How can I use FlatFileItemReader to consider each id as an each item i.e in short multiple records on single line ? Or is there any other way to achive this ?