info.jonclark.util
Class WebUtils
java.lang.Object
info.jonclark.util.WebUtils
public class WebUtils
- extends Object
Utilities for getting data from the web
WebUtils
public WebUtils()
getUrlStream
public static InputStream getUrlStream(String urlToRetrieve)
throws IOException
- Get an input stream for the data at a given URL
- Parameters:
urlToRetrieve - The URL from which we will get data
- Returns:
- An input stream with the data at
urlToRetrieve
- Throws:
IOException
main
public static void main(String[] args)
throws Exception
- Main method, for demo purposes
- Parameters:
args -
- Throws:
Exception