use of org.ini4j.InvalidFileFormatException in project NoraUi by NoraUi.
the class Context method initApplicationDom.
protected static void initApplicationDom(ClassLoader loader, String version, String applicationKey) {
try {
final InputStream data = loader.getResourceAsStream("selectors/" + version + "/" + applicationKey + ".ini");
if (data != null) {
final Ini ini = new Ini(data);
iniFiles.put(applicationKey, ini);
}
} catch (final InvalidFileFormatException e) {
logger.error("error Context.initApplicationDom()", e);
} catch (final IOException e) {
logger.error(Messages.getMessage(CONTEXT_APP_INI_FILE_NOT_FOUND), applicationKey, e);
}
}
Aggregations