I'm a beginner at using Clover. I'm currently using the code from DataParsing.java (provided in the examples/JavaExamples section) and it works perfectly except for the case where my data fields are surrounded by quotes.
My source file has this format: "John", "Smith", etc.
I tried to set the quotedStrings to true at the record level, hence something like this:
Code: Select all
<Record fieldDelimiter="," recordDelimiter="\r\n" name="Person" recordSize="-1" type="delimited" skipFirstLine="false" quotedStrings="true">
but the resulting values after being parsed still end up with the double quotes (I end up with "John" with the double quotes from the call to record.getField(0).toString()).
After reading a bit on the forum I discovered that the quotedStrings attribute seems to apply only to the DataReader.
If that is the case, would someone have a simple example on how to use the DataReader in regards of the DataParsing.java example ?
Thank you very much!