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 voidaddURLDownloaderListener(URLDownloaderListener l)intgetContentLength()intgetCurrentDownloadLength()voidremoveURLDownloaderListener(URLDownloaderListener l)voidrun()voidstart()protected voidupdateListeners(URLDownloaderEvent e)
-
-
-
Method Detail
-
start
public void start() throws java.io.IOException- Throws:
java.io.IOException
-
run
public void run()
- Specified by:
runin 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()
-
-