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:
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 ?
DataParsing.java does not use any external FMT file. The metadata are created inside the code. Due to a logic in the code, it is not possible to set qutedStrings in the java file, since this would be ignored.
However, you may sligthly modify the code. All you need to do is to replace parser
Yes, this is correct, GraphSort.java is the file you may use. There is also another example (XMLGraph.java), which is used to run the graph from XML definition.