List of utility methods to do URL from
URL | makeUrl(String base, String suffix) make Url try { return new URL(pathCat(base, suffix)); } catch (MalformedURLException e) { throw new RuntimeException("Internal error", e); |
URL | makeURL(String id) make URL try { String base = "http://share.findmespot.com/messageService/guestlinkservlet"; String full = String.format("%s?glId=%s&completeXml=true", base, id); return new URL(full); } catch (MalformedURLException mue) { throw new AssertionError(mue); |
URL | makeURL(String location) Obtains a URL from a string. if (location == null || location.trim().length() == 0) { return null; try { return new URL(location); } catch (MalformedURLException e) { try { URI uri = new File(location).toURI(); ... |
URL | makeURL(String title, String urlString) Creates a URL from user input. if (urlString == null) { return null; if (urlString.trim().length() < 1) { return null; URL url = null; int i = -1; ... |
URL | makeUrl(String url) make Url try { return new URL(url); } catch (MalformedURLException e) { throw new RuntimeException(e); |
URL | makeUrl(String url) Creates a URL instance. try { return new URL(url); } catch (MalformedURLException e) { throw new RuntimeException(e); |
URL | makeURL(String url) make URL URL res = null; if (url == null) return res; try { res = new URL(url); } catch (MalformedURLException e) { try { res = new URL("file", null, url); ... |
URL | makeURL(String urlstr) make URL URL theURL = null; try { theURL = new URL(ensureURLProtocol(urlstr)); } catch (MalformedURLException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); return theURL; |
URL | makeURL(String[] URLStrings) make URL for (String url : URLStrings) { try { return new URL(url); } catch (MalformedURLException e) { return null; |
URL | newURL(CharSequence urlString) new URL return newURL((URL) null, urlString);
|