qdown.quickDownloader.systemThreads
Class DownloadThread

java.lang.Object
  extended byqdown.quickDownloader.systemThreads.DownloadThread
All Implemented Interfaces:
java.lang.Runnable

public class DownloadThread
extends java.lang.Object
implements java.lang.Runnable

The Download thread spawned for each download


Constructor Summary
DownloadThread(java.lang.String urlName, java.lang.String location, NewDownloadControl downloadControl, NewDownloadGUI newDownload, boolean zipUp)
          The constructor of the class used to initialize the local variables
 
Method Summary
 void run()
          The method which is initiated through start()
 void zipDownload(java.lang.String location, java.lang.String urlName)
          Called when a download is needed to be zipped up
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadThread

public DownloadThread(java.lang.String urlName,
                      java.lang.String location,
                      NewDownloadControl downloadControl,
                      NewDownloadGUI newDownload,
                      boolean zipUp)
The constructor of the class used to initialize the local variables

Parameters:
urlName - The url to download
location - The location of download
downloadControl - The control class
newDownload - The download GUI class reference
zipUp - Whether to zip up download
Method Detail

run

public void run()
The method which is initiated through start()

Specified by:
run in interface java.lang.Runnable

zipDownload

public void zipDownload(java.lang.String location,
                        java.lang.String urlName)
Called when a download is needed to be zipped up

Parameters:
location - The location of the file to zip up
urlName - The url which is to be zipped