All Classes and Interfaces
Class
Description
an abstract class for
IniElement.将字符串值的格式设置为
IniElement
除了CommentElementFormatter之外,所有元素格式化程序都还需要注释元素格式化程序Setting抽象类
构建器创建
IniSetting示例
非线程安全将字符串值格式设置为
IniComment将字符串值格式设置为
IniElementini formatter.
全局的Profile配置中心
基于分组的Map
此对象方法线程安全
分组化的Set集合类
在配置文件中可以用中括号分隔不同的分组,每个分组会放在独立的Set中,用group区别
无分组的集合和`[]`分组集合会合并成员,重名的分组也会合并成员
分组配置文件如下:
Ini file's comment.
section create function
Ini file's comment.
IniElement, like
sections, properties, comments.Ini file's parameters, like
property1=value1 property create function
Ini file's parameters, like
property1=value1 Ini file's Section
section create function
Ini file's Section
Ini数据,扩展
ArrayList <IniElement>
如果要向此ini添加空行,只需添加null
如果您想创建Ini,则可以BuilderSetting文件加载器
Profile可以让我们定义一系列的配置信息,然后指定其激活条件。
此类中我们规范一套规则如下:
默认的,我们读取${classpath}/default下的配置文件(*.setting文件),当调用setProfile方法时,指定一个profile,即可读取其目录下的配置文件。
比如我们定义几个profile:test,develop,production,分别代表测试环境、开发环境和线上环境,我希望读取数据库配置文件db.setting,那么:
test = ${classpath}/test/db.setting
develop = ${classpath}/develop/db.setting
production = ${classpath}/production/db.setting
将字符串值格式设置为
IniPropertyProperties文件读取封装类
将字符串值格式设置为
IniSectionSetting工具类
提供静态方法获取配置文件
设置工具类。 用于支持设置(配置)文件
用于替换Properties类,提供功能更加强大的配置文件,同时对Properties文件向下兼容
toml读写封装
TOML文件读取
来自:https://github.com/TheElectronWill/TOML-javalib
TOML生成器
基于Snakeyaml的的YAML读写工具