copyFile

public static boolean copyFile(FileInputStream fileInputStream, String outFilePath)

Copies one file into the other with the given paths. In the event that the paths are the same, trying to copy one file to the other will cause both files to become null. Simply skipping this step if the paths are identical.