Search in sources :

Example 1 with IniPreferences

use of org.ini4j.IniPreferences in project iri by iotaledger.

the class Configuration method init.

public boolean init() throws IOException {
    File confFile = new File(string(Configuration.DefaultConfSettings.CONFIG));
    if (confFile.exists()) {
        ini = new Ini(confFile);
        prefs = new IniPreferences(ini);
        return true;
    }
    return false;
}
Also used : Ini(org.ini4j.Ini) IniPreferences(org.ini4j.IniPreferences) File(java.io.File)

Aggregations

File (java.io.File)1 Ini (org.ini4j.Ini)1 IniPreferences (org.ini4j.IniPreferences)1