public static void copy ( InputStream source , File destination ) throws IOException { OutputStream output = null ; try { output = new FileOutputStream ( destination ) ; copy ( source , output ) ; } finally { closeQuietly ( output ) ; } }
Copies the content of an InputStream into a destination File .