net.livesite.http
Class HttpDownload

java.lang.Object
  extended by net.livesite.http.HttpConnection
      extended by net.livesite.http.HttpDownload

public class HttpDownload
extends HttpConnection


Constructor Summary
HttpDownload(String urlStr)
           
HttpDownload(String urlStr, File target)
           
 
Method Summary
 String doGet()
          doGet This method will issue a get to the server.
 File getTarget()
           
protected  String readInputStream(InputStream is)
           
 void setTarget(File target)
           
 
Methods inherited from class net.livesite.http.HttpConnection
doNotify, doPost, doPost, getConnection, getMimeType, getPassword, getResponseCode, getResponseMessage, getUsername, setMimeType, setPassword, setUsername, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpDownload

public HttpDownload(String urlStr)
             throws IOException
Throws:
IOException

HttpDownload

public HttpDownload(String urlStr,
                    File target)
             throws IOException
Throws:
IOException
Method Detail

doGet

public String doGet()
             throws IOException,
                    Exception
Description copied from class: HttpConnection
doGet This method will issue a get to the server. It takes no input, but does reply with the server output string.

Overrides:
doGet in class HttpConnection
Throws:
IOException
Exception

readInputStream

protected String readInputStream(InputStream is)
                          throws Exception
Overrides:
readInputStream in class HttpConnection
Throws:
Exception

getTarget

public File getTarget()

setTarget

public void setTarget(File target)