I currently have a class InvoiceFileItemReader which implements ItemReader. I am overriding the read() method and I need to access the filename of the currently executing file. I know that a MultiResourceItemReader has a getCurrentResource() method. I want to do the same sort of thing using an ItemReader.
What is the best possible way to achieve this?
Any help will be greatly appreciated.