I'll be assuming the following:
- CSVWriter means au.com.bytecode.opencsv.CSVWriter, as part of opencsv
- WriteAll should be writeAll
What happens if you call csvWriter.flush() and, more importantly, csvWriter.close()? Since
you should always close all your streams when you're done with them.