public interface Downloader
DownloadManager.| 限定符和类型 | 方法和说明 |
|---|---|
java.io.InputStream |
byteStream()
Get inputstream supported by downloader.
|
void |
close()
Close downloader and stop downloader.
|
long |
contentLength()
Get content length for current uri.
|
Downloader |
copy()
Make a copy for this downloader.
|
java.lang.String |
detectFilename(android.net.Uri uri)
Detect filename from http header/url if existed.
|
int |
start(android.net.Uri uri,
long breakpoint)
Init downloader and start to download.
|
java.lang.String detectFilename(android.net.Uri uri)
throws java.io.IOException
java.io.IOExceptionint start(android.net.Uri uri,
long breakpoint)
throws java.io.IOException
uri - Uribreakpoint - breakpoint if existsjava.io.IOExceptionlong contentLength()
java.io.InputStream byteStream()
throws java.io.IOException
java.io.IOExceptionvoid close()
Downloader copy()