void fail(Exception e, DownloadListener[] blockers, File file) { for (DownloadListener dl : blockers) { try { dl.failure(file, e.toString()); } catch (Exception ee) { // } } }
/** * 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) { // } } }