Reputation: 51
I am new to Spring batch. I wanted to ask how can I write a custom flat file item reader in Spring batch. I know there is one generic FlatFileItemReader available in Spring batch, but we want to add some business logic while reading then how to write a custom flat file reader.
Thanks in advance
Upvotes: 1
Views: 10028
Reputation: 243
I have done same thing for MultiResourceItemReader, you can extend FlatFileReader and copy complete code of FlatFileReader. Then you can add your own method.
Upvotes: 1
Reputation: 1171
If the in-build logging provided in the FlatFileItemReader is not sufficient for your needs,
I don't recommend this - in more cases you would be better off debugging your code with a debugger.
Upvotes: 0