/** * Copy the input file onto the output file using a default buffer size. * * @param sourceFile the {@link File} to copy from. * @param destinationFile the {@link File} to copy to. * @throws IOException in case something bad happens. */ public static void copyFile(File sourceFile, File destinationFile) throws IOException { copyFile(sourceFile, destinationFile, DEFAULT_SIZE); }
/** * Copy the input file onto the output file using a default buffer size. * * @param sourceFile the {@link File} to copy from. * @param destinationFile the {@link File} to copy to. * @throws IOException in case something bad happens. */ public static void copyFile(File sourceFile, File destinationFile) throws IOException { copyFile(sourceFile, destinationFile, DEFAULT_SIZE); }
copyFile(source, new File(destDir, source.getName()));
copyFile(source, new File(destDir, source.getName()));
IOUtils.copyFile(inputFile, newFile); } else { final InputStream inputStream = fileURL.openStream();