问题描述
我正在从具有多行记录(由,END
分隔的旧版系统中读取CSV。
我正在尝试使用univocity解析器逐行解析CSV,其中每个“行”一直运行到END。
我尝试使用.setLineseparator(",END");
,但似乎仅限于2个字符。
有什么方法可以使用univocity解析两个以上字符的行分隔符?
解决方法
猜猜它永远不会被添加
https://github.com/uniVocity/univocity-parsers/issues/307
Allow longer line separators than two characters #307
Thanks for the suggestion but it's not going to be implemented: this requires a LOT of changes,added complexity and performance overhead for a corner case that up until now no one has ever needed.
Closing.