My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 13: readHeader() doesn't parse the comma separated header fields
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by dean.w.s...@gmail.com, Mar 2, 2014
What steps will reproduce the problem?
1. call CsvReader.readHeader()
2.
3.

What is the expected output? What do you see instead?

I expect the List<String> will contain a list of headers for each comma separated field.  Instead it gives the entire line, unparsed.  I would have to write a csv parser myself to parse the header line.  Useless.


What version of the product are you using? On what operating system?

1.4.0 on JDK 1.7 on Windows 7 enterprise.


Please provide any additional information below.


Dec 8, 2014
#1 acsta...@gmail.com
I think this is because the default Strategy has a semi-colon as the delimiter, not a comma. You'll have to create a [ new Strategy(',', '"', '#', false, true) ]. The only difference between this listed one and the default is the ; changed to a , which might fix the problem. Since it's looking for a ; to split the header and finds none, it assumes you have only 1 column overall.

Powered by Google Project Hosting