net.sf.gluebooster.java.booster.basic.container.ConfigurationBoostUtils Maven / Gradle / Ivy
package net.sf.gluebooster.java.booster.basic.container;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Collection;
import java.util.Map;
import net.sf.gluebooster.java.booster.essentials.eventsCommands.CallableAbstraction;
import net.sf.gluebooster.java.booster.essentials.utils.Constants;
import net.sf.gluebooster.java.booster.essentials.utils.ContainerBoostUtils;
import net.sf.gluebooster.java.booster.essentials.utils.IoBoostUtils;
import net.sf.gluebooster.java.booster.essentials.utils.ThrowableBoostUtils;
import net.sf.gluebooster.java.booster.essentials.utils.XmlBoostUtils;
/**
* Utilitites for configurations.
*
* @author cbauer
*
*/
public class ConfigurationBoostUtils extends CallableAbstraction {
/**
* Saves a configuration.
*
* @param entries
* a subset of the entries will be saved
* @param keys
* the keys of the entries that are to be saved
* @param output
* the configuration will be written into the output
* @param closeAfterSaving
* is the output to be closed after saving.
*/
public static void saveConfiguration(Map