java组织。阿帕奇。平民配置INI配置:带点(句点)的节名
我有一个ini配置,我用org阅读。阿帕奇。平民配置配置不正确。这个很好用。 但现在我的配置中有了一个带点(perod)的节名
[fineSection]
fineKey = fineValue
[worry.Section]
worryKey = worryValue
这是我的代码:
String content = getMyConfiguration();
INIConfiguration iniConfiguration = new INIConfiguration();
iniConfiguration.load(new ByteArrayInputStream(content.getBytes()));
Set<?> sections = iniConfiguration.getSections();
我明白了
sections = [fineSection, worry].
但我需要
sections = [fineSection, worry.Section].
怎样才能解决这个问题,有可能吗
谢谢,托马斯
# 1 楼答案
使用Commons配置2.2版