|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cdx.scorebot.net.tests.webserver.GetFile
public class GetFile
Helper class for downloading a file from a webserver
Constructor Summary | |
---|---|
GetFile(java.lang.String url)
Initializes the class to connect to a specified url. |
Method Summary | |
---|---|
java.lang.String |
getPage()
Gets the HTML of the url. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GetFile(java.lang.String url) throws java.net.MalformedURLException, java.io.IOException
url
- The url of the webpage to connect to
java.net.MalformedURLException
- Thrown if the url is not proper
java.io.IOException
- Thrown if the class cannot access the webpageMethod Detail |
---|
public java.lang.String getPage() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |