Download(URL url) {
setUrl(url);
}
}
AbstractDownload d = new Download(new URL(url));
d.addPropertyChangeListener(this);
downloader.setDownload(d);
downloader.download();
d.removePropertyChangeListener(this);
}
for (String url : ftp) {
class Download extends AbstractDownload {
Download(URL url) {
setUrl(url);
}
}
AbstractDownload d = new Download(new URL(url));
d.addPropertyChangeListener(this);
downloader.setDownload(d);
downloader.download();
d.removePropertyChangeListener(this);
}
}