public class ThreadedDownloader extends ThreadedWorker<DownloadRequestEnvelope>
| Constructor and Description |
|---|
ThreadedDownloader() |
| Modifier and Type | Method and Description |
|---|---|
void |
doWork(DownloadRequestEnvelope chunk) |
File |
getDestinationDir()
Return the destination directory of downloaded files.
|
void |
setDestinationDir(File dir)
Set the destination directory of downloaded files.
|
getListener, getMaxThreads, isComplete, push, setListener, setMaxThreads, startWorkingpublic void doWork(DownloadRequestEnvelope chunk) throws MalformedURLException, IOException
doWork in class ThreadedWorker<DownloadRequestEnvelope>MalformedURLExceptionIOExceptionpublic File getDestinationDir()
public void setDestinationDir(File dir)
dir - The destination directoryCopyright © 2017. All Rights Reserved.