List of utility methods to do URL to InputStream
InputStream | openStream(URL url) open Stream return url.openStream();
|
InputStream | openStream(URL url) <#if locale="en"> Get InputStream from URL . try { URLConnection connection = url.openConnection(); connection.setUseCaches(false); return connection.getInputStream(); } catch (IOException e) { throw new RuntimeException(e); |
InputStream | openStream(URL url, int connectTimeout, int readTimeout) Open a stream for the given URL with custom timeouts URLConnection conn = url.openConnection();
conn.setConnectTimeout(connectTimeout);
conn.setReadTimeout(readTimeout);
return conn.getInputStream();
|
InputStream | openStreamUseCache(URL url) Similar to url.openStream except that the accessed resource may be a cached copy.
URLConnection connection = openConnectionUseCache(url);
return connection.getInputStream();
|
InputStream | openURL(String url) open stream from URL. try { return new URL(url + BIOPORTAL_OPTIONS).openStream(); } catch (Exception ex) { return null; |
InputStream | openURLStream(String in) open URL Stream URL inUrl = new URL(in); InputStream ret = inUrl.openStream(); return (ret); |