如何在beanio中引入新的流格式

How to introduce new stream format in beanio

除了 csv、fixedLength、delimited、json 和 xml 之外,beanio 是否可以支持更多的流格式?我已经从 beanio 创建了一个新模块来添加新格式,但是 StreamCompiler 用来映射格式的 beanio.properties 驻留在 beanio 父项目中,我将如何向它添加新格式?

我不知道您是否可以通过这种方式扩展 BeanIO,但如果这对您有用,那就太好了。

请参阅参考文档的 Section 8,了解如何提供您的自定义 beanio.properties 文件

8.0. Configuration

In some cases, BeanIO behavior can be controlled by setting optional property values. Properties can be set using System properties or a property file. BeanIO will load configuration setting in the following order of priority:

  • System properties.
  • A property file named beanio.properties. The file will be looked for first in the application's working directory, and then on the classpath.

The name and location of beanio.properties can be overridden using the System property org.beanio.configuration. In the following example, configuration settings will be loaded from the file named config/settings.properties, first relative to the application's working directory, and if not found, then from the root of the application's classpath.

java -Dorg.beanio.configuration=config/settings.properties example.Main

如果您可以通过这种方式扩展支持的格式,请告诉我们。