arnaudroger / SimpleFlatMapper

Fast and Easy mapping from database and csv to POJO. A java micro ORM, lightweight alternative to iBatis and Hibernate. Fast Csv Parser and Csv Mapper
http://simpleflatmapper.org
MIT License
435 stars 76 forks source link

Custom string separator for csv parser #684

Closed Dam14n closed 4 years ago

Dam14n commented 4 years ago

Hey there,

I'm trying to use CSVParser in order to parse a file to a model that follows the convection of a CSV file but using a custom separator. For instance, in this case the separator used into the file is "~!~" and reading the documentation the way to set a custom separator is:

image

But as you can see it only accepts char, is there a way to set a string as a custom separator like that?

Regards

arnaudroger commented 4 years ago

Not currently only support one char separator. It would not be a trivial change either.

Dam14n commented 4 years ago

Ok , no problem. It was just to confirm. Thanks!