|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ir.webutils.WebPage
public class WebPage
WebPage is a static utility class that provides operations for downloading web pages.
Constructor Summary | |
---|---|
WebPage()
|
Method Summary | |
---|---|
static java.lang.String |
getWebPage(java.lang.String urlString)
Downloads the web page specified by the URL represented by a given string. |
static java.lang.String |
getWebPage(java.net.URL url)
Downloads the web page specified by the given URL
object. |
static void |
main(java.lang.String[] args)
Retrieve the page on the URL given and output its contents to STDOUT. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebPage()
Method Detail |
---|
public static java.lang.String getWebPage(java.lang.String urlString)
urlString
- String
representation of the URL
to get the page from. The URL must be absolute.
String
containing the contents of the
page. No extra parsing work is done on the page.public static java.lang.String getWebPage(java.net.URL url)
URL
object.
url
- The URL
object that the page will be
downloaded from.
String
containing the contents of the
page. No extra parsing work is done on the page.public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |