Univocity parser - false delimiter autodetection when too little information given

Viewed 378

I set the parser to detect the delimiters automatically

CsvParserSettings settings = new CsvParserSettings();
settings.detectFormatAutomatically();

I have only 1 single record : 47W2E2qxPs, http://usda.gov/mattis.html

What I got :

code: 47W2E2qxPshttp url: //usda.gov/mattis.html

I expected the delimiter to be , and not :

so my expected result would be 47W2E2qxPs and http://usda.gov/mattis.html .

Could I fix it in an elegant way?

1 Answers
Related