Only SortedMap allowed in writeHeaderLine & writeDataLine methods of CSVWriter troubled me a lot.
I was working with a csv file which had very strict rules about the HEADER and the details because it was going to be feed to other system. Having only SortedMap in writeHeaderLine and writeDataLine methods is not suitable for csv files which has strict rules for HEADER format. If I opt for other methods like writeLine(String[]) then it doesn't help in easing the problem in general. So I took liberty to change the code, instead of SortedMap, writeHeaderLine should have LinkedHashMap to preserve the insertion order which helps in case of csv file with strict HEADER rules.
I have the code ready with me if you need let me know I will send it to you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Shawn:
Only SortedMap allowed in writeHeaderLine & writeDataLine methods of CSVWriter troubled me a lot.
I was working with a csv file which had very strict rules about the HEADER and the details because it was going to be feed to other system. Having only SortedMap in writeHeaderLine and writeDataLine methods is not suitable for csv files which has strict rules for HEADER format. If I opt for other methods like writeLine(String[]) then it doesn't help in easing the problem in general. So I took liberty to change the code, instead of SortedMap, writeHeaderLine should have LinkedHashMap to preserve the insertion order which helps in case of csv file with strict HEADER rules.
I have the code ready with me if you need let me know I will send it to you.