private URI getUri(UrlResource urlResource) { URI uri; try { uri = urlResource.getURI(); } catch (IOException e) { throw new IllegalArgumentException("Could not get URI from " + urlResource.getDescription()); } return uri; }
private URI getUri(UrlResource urlResource) { URI uri; try { uri = urlResource.getURI(); } catch (IOException e) { throw new IllegalArgumentException("Could not get URI from " + urlResource.getDescription()); } return uri; }
/** * This implementation returns a File reference for the underlying URL, * provided that it refers to a file in the file system. * @see org.springframework.util.ResourceUtils#getFile(java.net.URL, String) */ public File getFile() throws IOException { return ResourceUtils.getFile(this.url, getDescription()); }