| Constructor and Description |
|---|
DownloadThread(java.lang.String sourceFileURL,
java.lang.String destinationFileLocal)
Instantiates a new download thread.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doCancel()
Cancels the currently running download.
|
java.lang.Integer |
getDownloadProgress()
Informs about the current download progress.
|
boolean |
isFinished()
Informs about a finished download.
|
void |
run() |
boolean |
wasSuccessful()
Informs if the download was successful.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic DownloadThread(java.lang.String sourceFileURL,
java.lang.String destinationFileLocal)
sourceFileURL - the source file urldestinationFileLocal - the destination file localpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void doCancel()
public boolean isFinished()
public boolean wasSuccessful()
public java.lang.Integer getDownloadProgress()