public class MemoryDownloadTask extends DownloadTask<byte[]>
| Constructor and Description |
|---|
MemoryDownloadTask(String uri)
Constructs a MemoryDownloadTask.
|
MemoryDownloadTask(URI uri)
Constructs a MemoryDownloadTask.
|
| Modifier and Type | Method and Description |
|---|---|
DownloadSession<byte[]> |
createSession()
Calls when the download task begins.
|
DownloadSession<byte[]> |
createSession(long length)
Calls when the download task begins.
|
andThen, getURIpublic MemoryDownloadTask(String uri)
uri - the uri of resource to downloadNullPointerException - if uri==nullIllegalArgumentException - if uri is not in a valid
URI formatpublic MemoryDownloadTask(URI uri)
uri - the uri of resource to downloadNullPointerException - if uri==nullpublic DownloadSession<byte[]> createSession(long length) throws IOException
DownloadTaskcreateSession in class DownloadTask<byte[]>length - the possible length of dataIOException - if an I/O error occurspublic DownloadSession<byte[]> createSession() throws IOException
DownloadTaskcreateSession in class DownloadTask<byte[]>IOException - if an I/O error occursCopyright © 2016. All rights reserved.