/** * Copies the contents of file <tt>source</tt> to file * <tt>destination</tt>. */ public static void copyFile(File source, File destination) throws IOException { FileInputStream in = null; try { in = new FileInputStream(source); IOUtil.writeStream(in, destination); } finally { if (in != null) in.close(); } }
IOUtil.writeStream(in, outFile);