我正在从一个遗留系统中读取CSV,该系统具有由,END分隔的多行记录。
我正在尝试使用Univocity解析器逐行解析CSV,其中每个“行”都运行到、结束。
我尝试过使用.setLineSeparator(",END");,但它似乎被限制为2个字符。
有没有办法使用Univocity来解析超过2个字符的行分隔符?
发布于 2020-11-04 17:21:30
我猜它永远不会被添加
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.https://stackoverflow.com/questions/64662231
复制相似问题