Univocity 解析器自定义行分隔符

Univocity parsers custom line separator

我正在从遗留系统中读取 CSV,该遗留系统具有由 ,END 分隔的多行记录。

我正在尝试使用 Univocity 解析器逐行解析 CSV,其中每个 'line' 运行直到 ,END。

我试过使用 .setLineSeparator(",END"); 但它似乎被限制为 2 个字符。

有什么方法可以使用 Univocity 解析超过 2 个字符的行分隔符吗?

估计永远不会添加

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.