public class FileRequest extends NetworkRequest<java.io.File>
NetworkRequest.BodyLoader, NetworkRequest.InputStreamBodyLoaderACCEPT, CONTENT_TYPE| Constructor and Description |
|---|
FileRequest(java.lang.String url,
java.io.File dest) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onDownloadProgressChanged(long current,
long total)
This method is called inside a thread.
|
protected java.io.File |
parseResponse(java.io.InputStream stream)
Implementations must call
disconnect() after they are done with the connection. |
cancel, disconnect, execute, getConnection, getResponseCode, isCancelable, isCanceled, isExecuted, resetRequest, setBody, setBody, setBody, setBody, setBody, setBody, setMethod, toStringpublic FileRequest(java.lang.String url,
java.io.File dest)
throws java.io.IOException
java.io.IOExceptionprotected java.io.File parseResponse(java.io.InputStream stream)
throws java.io.IOException
NetworkRequestdisconnect() after they are done with the connection.parseResponse in class NetworkRequest<java.io.File>java.io.IOExceptionprotected void onDownloadProgressChanged(long current,
long total)