void (TransferEvent event, byte[] bytes, int i) { checkCanceled(); String resourceName = event.getResource().getName(); DownloadData data = myDownloads.get(resourceName); data.downloaded += i; updateProgress(resourceName, data); }