public static void copyFile(File sourceFile, File destFile) {
        try { 
            if (!sourceFile.exists()) {
                    return;
            }
            if (!destFile.exists()) {
                    destFile.createNewFile();
            }
            FileChannel source = null;
            FileChannel destination = null;
            source = new FileInputStream(sourceFile).getChannel();
            destination = new FileOutputStream(destFile).getChannel();
            if (destination != null && source != null) {
                    destination.transferFrom(source, 0, source.size());
            }
            if (source != null) {
                    source.close();
            }
            if (destination != null) {
                    destination.close();
            }
        } catch ( IOException ex) {
            ex.printStackTrace();
        }

}