/** * Saves the given configuration into a file specified by the given * filename. * * @param filename the filename * @param config the configuration * @throws IOException if an IOError occurs. */ public void save(final String filename, final Configuration config) throws IOException { save(new File(filename), config); }
/** * Saves the given configuration into a file specified by the given * filename. * * @param filename the filename * @param config the configuration * @throws IOException if an IOError occurs. */ public void save(final String filename, final Configuration config) throws IOException { save(new File(filename), config); }
/** * Saves the given configuration into a file specified by the given * filename. * * @param filename the filename * @param config the configuration * @throws IOException if an IOError occurs. */ public void save(final String filename, final Configuration config) throws IOException { save(new File(filename), config); }
/** * Saves the given configuration into a file specified by the given * file object. * * @param file the target file * @param config the configuration * @throws IOException if an IOError occurs. */ public void save(final File file, final Configuration config) throws IOException { final BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(file)); save(out, config); out.close(); }
/** * Saves the given configuration into a file specified by the given * file object. * * @param file the target file * @param config the configuration * @throws IOException if an IOError occurs. */ public void save(final File file, final Configuration config) throws IOException { final BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(file)); save(out, config); out.close(); }
/** * Saves the given configuration into a file specified by the given * file object. * * @param file the target file * @param config the configuration * @throws IOException if an IOError occurs. */ public void save(final File file, final Configuration config) throws IOException { final BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(file)); save(out, config); out.close(); }