Example #1
0
 void fail(Exception e, DownloadListener[] blockers, File file) {
   for (DownloadListener dl : blockers) {
     try {
       dl.failure(file, e.toString());
     } catch (Exception ee) {
       //
     }
   }
 }
Example #2
0
 /**
  * Just report success to all download listeners
  *
  * @param blockers
  * @param file
  */
 void ok(DownloadListener[] blockers, File file) {
   for (DownloadListener dl : blockers) {
     try {
       dl.success(file);
     } catch (Exception e) {
       //
     }
   }
 }