info.jonclark.util
Class WebUtils

java.lang.Object
  extended by info.jonclark.util.WebUtils

public class WebUtils
extends Object

Utilities for getting data from the web


Constructor Summary
WebUtils()
           
 
Method Summary
static InputStream getUrlStream(String urlToRetrieve)
          Get an input stream for the data at a given URL
static void main(String[] args)
          Main method, for demo purposes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebUtils

public WebUtils()
Method Detail

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