Back to Vassonic

SonicDownloadClient.DownloadTask (sdk 3.0.0 API)

sonic-android/docs/javadoc/com/tencent/sonic/sdk/download/SonicDownloadClient.DownloadTask.html

3.1.16.6 KB
Original Source

跳过导航链接

com.tencent.sonic.sdk.download

类 SonicDownloadClient.DownloadTask

  • java.lang.Object

    • com.tencent.sonic.sdk.download.SonicDownloadClient.DownloadTask
  • 封闭类:SonicDownloadClient


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() |

方法概要

- 

从类继承的方法 java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

字段详细资料

- 

STATE_INITIATE

public static final int STATE_INITIATE

download in initiate state. 另请参阅:常量字段值

- 

STATE_QUEUEING

public static final int STATE_QUEUEING

download in queueing state. 另请参阅:常量字段值

- 

STATE_DOWNLOADING

public static final int STATE_DOWNLOADING

the task is in downloading state. 另请参阅:常量字段值

- 

STATE_DOWNLOADED

public static final int STATE_DOWNLOADED

the task is in download complete state. 另请参阅:常量字段值

- 

STATE_LOAD_FROM_CACHE

public static final int STATE_LOAD_FROM_CACHE

the task is load from cache, not from network. 另请参阅:常量字段值

- 

mResourceUrl

public java.lang.String mResourceUrl

url of the resource to be download

- 

mIpAddress

public java.lang.String mIpAddress

ip address instead of host to launch a http request

- 

mCookie

public java.lang.String mCookie

cookie to be set in the http download request

- 

mRspHeaders

public java.util.Map<java.lang.String,java.util.List<java.lang.String>> mRspHeaders

the download request's response headers

- 

mInputStream

public java.io.InputStream mInputStream

the network stream or memory stream or the bridge stream

- 

mState

public java.util.concurrent.atomic.AtomicInteger mState

the task's download state

- 

mWasInterceptInvoked

public final java.util.concurrent.atomic.AtomicBoolean mWasInterceptInvoked

whether the task's responding resource was intercepted by kernel

- 

mCallbacks

public java.util.List<[SonicDownloadCallback](../../../../../com/tencent/sonic/sdk/download/SonicDownloadCallback.html "com.tencent.sonic.sdk.download中的接口")> mCallbacks

list of download callback

构造器详细资料

- 

DownloadTask

public DownloadTask()

跳过导航链接