public class Download
extends java.lang.Object
Constructor and Description |
---|
Download(java.lang.String sourceFileURL,
java.lang.String destinationFileLocal)
Instantiates a new download.
|
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 |
startDownload()
Starts the download.
|
boolean |
wasSuccessful()
Informs if the download was successful.
|
public Download(java.lang.String sourceFileURL, java.lang.String destinationFileLocal)
sourceFileURL
- the URL of the source filedestinationFileLocal
- the local destination filepublic void startDownload()
public void doCancel()
public boolean isFinished()
public boolean wasSuccessful()
public java.lang.Integer getDownloadProgress()