@Override public void writeProperties(Properties properties, File file, String encoding, String comment) throws ApplicationConfigWriterException { try (Writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), encoding))) { properties.store(writer, comment); } catch (Exception e) { throw new ApplicationConfigWriterException("Can't store properties file: " + file, e); } }
throw new ApplicationConfigWriterException("Can't write ini file: " + file, e);
iniConfiguration.write(writer); } catch (Exception e) { throw new ApplicationConfigWriterException("Can't write ini file: " + file, e);