code: public static InputStream fromURL(URL url) throws IOException {
  		if(url != null) {
  			return url.openStream();
  		}
  		return null;
  	}
docs: Opens an input stream to the given URL.
  
  @param url
  the URL to open the stream to.
  @return
  an input stream to access the URL.
  @throws IOException
  if an error occurs opening the stream.