Package ipsk.io
Class URLDownloader
- java.lang.Object
-
- ipsk.io.URLDownloader
-
- All Implemented Interfaces:
java.lang.Runnable
public class URLDownloader extends java.lang.Object implements java.lang.Runnable
-
-
Constructor Summary
Constructors Constructor Description URLDownloader(java.net.URL url, java.io.OutputStream outstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addURLDownloaderListener(URLDownloaderListener l)
int
getContentLength()
int
getCurrentDownloadLength()
void
removeURLDownloaderListener(URLDownloaderListener l)
void
run()
void
start()
protected void
updateListeners(URLDownloaderEvent e)
-
-
-
Method Detail
-
start
public void start() throws java.io.IOException
- Throws:
java.io.IOException
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
getCurrentDownloadLength
public int getCurrentDownloadLength()
-
addURLDownloaderListener
public void addURLDownloaderListener(URLDownloaderListener l)
-
removeURLDownloaderListener
public void removeURLDownloaderListener(URLDownloaderListener l)
-
updateListeners
protected void updateListeners(URLDownloaderEvent e)
-
getContentLength
public int getContentLength()
-
-