public static void moveFile(File origPath,File destPath) throws IOException {
  copyFile(origPath,destPath);
  if (!origPath.delete())   throw new IOException("Cannot delete file: " + origPath.getName());
}

public static void moveFile ( File origPath , File destPath ) throws IOException { copyFile ( origPath , destPath ) ; if ( ! origPath . delete ( ) ) throw new IOException ( "Cannot delete file: " + origPath . getName ( ) ) ; }
convenience function to move a file .
