Mar 5th, 2012, 07:15 AM
Stream close without final flush
Did you meet the situation, where closing some stream it ommitted the final flush?
I implement some CSV helper as Spring Bean, based on OpenCSV lib regarding this the IoC call then method-destroy which encapsulates close method.
If I process 1-40 rows, don't notice anything wrong, but since 60-70 observe some strange, I loose a few latest rows.
Only when I use flush method explicity, then whole apropriate rows can find in file.
Does anyone see the same thing?