List of utility methods to do URL from
URL | newUrl(String href) Creates a new URL and wraps the java.net.MalformedURLException around an IllegalArgumentException if one was thrown. try { return new URL(href); } catch (MalformedURLException e) { throw new IllegalArgumentException("Malformed URL: " + href, e); |
URL | newURL(String location) new URL return newURI(location).toURL();
|
URL | newURL(String url) new URL try { return new URL(url); } catch (Exception e) { return null; |
URL | newURL(String url_name) new URL try { return new URL(url_name); } catch (MalformedURLException e) { throw new RuntimeException("Malformed URL " + url_name, e); |
URL | newUrl(String urlString) new Url return new URL(urlString); |