posted 12 years ago
Hi,
I want to know if ItemReader and flatfilereader - from spring batch package - does it read line by line data from file or read whole byte stream in memory?
I am trying to read fixed length flat file - large size - may be 30mb+ and extract few fields from each record. For e.g this file has each record that is size of 3000 char/bytes and I am interested in retrieving 2 fields from char position 10-30 and 2090-2100.
Because of large size 30MB+ I would like to read it line by line and creat javaobjects for each record. Therefore I want to know if flatfile reader reads line by line or loads whole file as bytestream in memory.
Thanks,