jodd-core/src/main/java/jodd/io/FileUtil.java
public static void writeStream(final FileOutputStream out, final InputStream in) throws IOException {
		try {
			StreamUtil.copy(in, out);
		} finally {
			StreamUtil.close(out);
		}
	}
public static void writeStream(final FileOutputStream out, final InputStream in) throws IOException {
		try {
			StreamUtil.copy(in, out);
		} finally {
			StreamUtil.close(out);
		}
	}
public static void writeStream ( final FileOutputStream out , final InputStream in ) throws IOException { try { StreamUtil . copy ( in , out ) ; } finally { StreamUtil . close ( out ) ; } }
Write {@link InputStream} in to {@link FileOutputStream}.

@param out {@link FileOutputStream} to write to.
@param in  {@link InputStream} to read.
@throws IOException if there is an issue reading/writing.
Write { @link InputStream } in to { @link FileOutputStream } .