How to read 'List separator' from OS in Java?

前端 未结 7 2165
我寻月下人不归
我寻月下人不归 2020-12-20 16:33

I am writing a CSV exporter in Java that should respect the user\'s custom settings, especially the \"List separator\" to use as a delimiter.

In Windows, one can set

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-20 17:01

    Without resorting to a platform specific solution I think that the best approach to take is going to be to allow users to specify their preference of list separator within your own application. Either in a preferences panel, a dialog box on export or via an optional command line argument.

提交回复
热议问题