The [ini4j] is a simple Java API for handling configuration files in Windows .ini format. Additionally, the library includes Java Preferences API implementation based on the .ini file.
In addition of model above, [ini4j] is able to deal with multiply option/section entries. It can be handled with MultiMap interface, which simply extends Map interface, and allow multiply values per key.
Many .ini files contains same values more than one times. With [ini4j] you are able to refer other options value via simple macro substitution. The basic syntax is the commonly used ${REF} format: ${section/option} (or with multi option: ${section/option[index]})
[ini4j] contains class Options
which is a better
Properties replacement. Options
use .properties
file format, but allow macro/variable substitution, mult value
properties. Unlike original java.util.Properties, Options
implements
Map<String,String>, so it more confortable to use
standard Collections api.
--> Options Tutorial
Yes, it is possible now to read/write registry from java programs without native (JNI) code ! [ini4j] is able to read and write registry keys. And almost all .ini features (expression handling, multi value, bean interface, etc) works with windows registry. --> Windows Registry Tutorial
On windows systems .REG file is common for registry import/export. It has similar but bit different syntax than old .ini format. [ini4j] fully support .REG file format. --> Reg Tutorial