org.vivoweb.harvester.util
Class WebHelper

java.lang.Object
  extended by org.vivoweb.harvester.util.WebHelper

public class WebHelper
extends java.lang.Object

Author:
Christopher Haines (hainesc@ctrip.ufl.edu)

Constructor Summary
WebHelper()
           
 
Method Summary
static java.lang.String getURLContents(java.lang.String url)
          Get the contents of a url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebHelper

public WebHelper()
Method Detail

getURLContents

public static java.lang.String getURLContents(java.lang.String url)
                                       throws java.net.MalformedURLException,
                                              java.io.IOException
Get the contents of a url

Parameters:
url - the url to grab
Returns:
the contents
Throws:
java.net.MalformedURLException - invalid url
java.io.IOException - error reading