sonic-android/docs/javadoc/com/tencent/sonic/sdk/download/SonicDownloadClient.DownloadTask.html
com.tencent.sonic.sdk.download
java.lang.Object
public static classSonicDownloadClient.DownloadTaskextends java.lang.Object
Task which record the download info
字段 | 限定符和类型 | 字段和说明 |
| --- | --- |
| java.util.List<SonicDownloadCallback> | mCallbacks
list of download callback
|
| java.lang.String | mCookie
cookie to be set in the http download request
|
| java.io.InputStream | mInputStream
the network stream or memory stream or the bridge stream
|
| java.lang.String | mIpAddress
ip address instead of host to launch a http request
|
| java.lang.String | mResourceUrl
url of the resource to be download
|
| java.util.Map<java.lang.String,java.util.List<java.lang.String>> | mRspHeaders
the download request's response headers
|
| java.util.concurrent.atomic.AtomicInteger | mState
the task's download state
|
| java.util.concurrent.atomic.AtomicBoolean | mWasInterceptInvoked
whether the task's responding resource was intercepted by kernel
|
| static int | STATE_DOWNLOADED
the task is in download complete state.
|
| static int | STATE_DOWNLOADING
the task is in downloading state.
|
| static int | STATE_INITIATE
download in initiate state.
|
| static int | STATE_LOAD_FROM_CACHE
the task is load from cache, not from network.
|
| static int | STATE_QUEUEING
download in queueing state.
|
构造器 | 构造器和说明 |
| --- |
| DownloadTask() |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static final int STATE_INITIATE
download in initiate state. 另请参阅:常量字段值
-
public static final int STATE_QUEUEING
download in queueing state. 另请参阅:常量字段值
-
public static final int STATE_DOWNLOADING
the task is in downloading state. 另请参阅:常量字段值
-
public static final int STATE_DOWNLOADED
the task is in download complete state. 另请参阅:常量字段值
-
public static final int STATE_LOAD_FROM_CACHE
the task is load from cache, not from network. 另请参阅:常量字段值
-
public java.lang.String mResourceUrl
url of the resource to be download
-
public java.lang.String mIpAddress
ip address instead of host to launch a http request
-
public java.lang.String mCookie
cookie to be set in the http download request
-
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> mRspHeaders
the download request's response headers
-
public java.io.InputStream mInputStream
the network stream or memory stream or the bridge stream
-
public java.util.concurrent.atomic.AtomicInteger mState
the task's download state
-
public final java.util.concurrent.atomic.AtomicBoolean mWasInterceptInvoked
whether the task's responding resource was intercepted by kernel
-
public java.util.List<[SonicDownloadCallback](../../../../../com/tencent/sonic/sdk/download/SonicDownloadCallback.html "com.tencent.sonic.sdk.download中的接口")> mCallbacks
list of download callback
-
public DownloadTask()