public static class Tools.Downloader
extends java.lang.Object
Constructor and Description |
---|
Tools.Downloader() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
downloadPage(java.lang.String pageAddress)
Downloads a page/content from the Internet.
|
public static java.lang.String downloadPage(java.lang.String pageAddress) throws java.net.MalformedURLException, java.io.IOException
pageAddress
.
NOTE: pageAddress
should be a correct URL, else
this method will throw MalformedURLException
.
pageAddress
- Address of the web page to get from the Internet.java.net.MalformedURLException
- Address of the web page is not correct.java.io.IOException
- Error while loading the page from the Internet or connection
got disconnected.