public class FileDownloadTask extends DownloadTask<Void>
| Constructor and Description |
|---|
FileDownloadTask(String uri,
File target)
Constructs a FileDownloadTask.
|
FileDownloadTask(URI uri,
File target)
Constructs a FileDownloadTask.
|
| Modifier and Type | Method and Description |
|---|---|
DownloadSession<Void> |
createSession()
Calls when the download task begins.
|
boolean |
equals(Object obj) |
File |
getTarget()
Gets the folder to save the file downloaded.
|
int |
hashCode() |
andThen, createSession, getURIpublic FileDownloadTask(String uri, File target)
uri - the uri of the resource to downloadtarget - the folder to save the fileNullPointerException - if uri==null || target==nullIllegalArgumentException - if uri is not in a valid
URI formatpublic FileDownloadTask(URI uri, File target)
uri - the uri of the resource to downloadtarget - the folder to save the fileNullPointerException - if uri==null || target==nullpublic File getTarget()
public DownloadSession<Void> createSession() throws IOException
DownloadTaskcreateSession in class DownloadTask<Void>IOException - if an I/O error occursCopyright © 2016. All rights reserved.