/** * Factory method that retrieves the image associated with the @a * urlToDownload and creates an Image to encapsulate it. */ protected Image downloadImage(URL url) { return new Image(url, NetUtils.downloadContent(url)); }
/** * Factory method that retrieves the image associated with the @a * urlToDownload and creates an Image to encapsulate it. */ protected Image downloadImage(URL url) { return new Image(url, NetUtils.downloadContent(url)); }