java.lang.Object
com.ejlchina.okhttps.internal.RealProcess
- 所有已实现的接口:
Process
-
字段概要
从接口继承的字段 com.ejlchina.okhttps.Process
DEFAULT_STEP_BYTES -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddDoneBytes(long delt) longdoublegetRate()当请求体大小未知(流式上传)时,该方法始终返回 -1 当请求体大小为 0 时,该方法始终返回 1long当请求体大小未知(流式上传)时,该方法返回 -1booleanisDone()只有当 当请求体大小已知 的情况下,该方法才可能返回 truebooleanisUndoneAndUnreached(long bytes) toString()
-
构造器详细资料
-
RealProcess
public RealProcess(long totalBytes, long doneBytes)
-
-
方法详细资料
-
newProcess
-
getRate
public double getRate()从接口复制的说明:Process当请求体大小未知(流式上传)时,该方法始终返回 -1 当请求体大小为 0 时,该方法始终返回 1 -
getTotalBytes
public long getTotalBytes()从接口复制的说明:Process当请求体大小未知(流式上传)时,该方法返回 -1- 指定者:
getTotalBytes在接口中Process- 返回:
- 总字节数
-
getDoneBytes
public long getDoneBytes()- 指定者:
getDoneBytes在接口中Process- 返回:
- 已完成字节数
-
isDone
public boolean isDone()从接口复制的说明:Process只有当 当请求体大小已知 的情况下,该方法才可能返回 true -
addDoneBytes
public void addDoneBytes(long delt) -
isUndoneAndUnreached
public boolean isUndoneAndUnreached(long bytes) -
toString
-