code: public static boolean copyFile(final File src, final File dest)
      throws FileNotFoundException, IOException {
          return copyFile(src, dest, -1, true);
      }
docs: Copy the src file to the destination. Deletes any preexisting
  file at destination.
  
  @param src
  @param dest
  @return True if the extent was greater than actual bytes copied.
  @throws FileNotFoundException
  @throws IOException