title: Read all files from directory Spring batch FileReadingMessageSource
body: <p>I am using spring batch for my application. Basically, all I have to do is read all XML files from the input directory. When I get all the XML files, each file needs to be converted to root Object. That object I have to split into two objects and print them into CSV file. So, if there are 10 XML files in the input folder, I need to generate CSV with 20 lines. If there are 150, CSV will have 300 lines, etc. I meant to use <code>FileReadingMessageSource</code>. It has a queue. But the problem with this is the return type of that queue. It returns File, and what I need is the List of queues. Can I somehow get the entire list of XML files from a directory in my reader?</p>