DEFAULT_STEP_BYTES| 构造器和说明 |
|---|
RealProcess(long totalBytes,
long doneBytes) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addDoneBytes(long delt) |
long |
getDoneBytes() |
double |
getRate()
当请求体大小未知(流式上传)时,该方法始终返回 -1
当请求体大小为 0 时,该方法始终返回 1
|
long |
getTotalBytes()
当请求体大小未知(流式上传)时,该方法返回 -1
|
boolean |
isDone()
只有当 当请求体大小已知 的情况下,该方法才可能返回 true
|
boolean |
isUndoneAndUnreached(long bytes) |
Process |
newProcess() |
String |
toString() |
public Process newProcess()
public double getRate()
Processpublic long getTotalBytes()
ProcessgetTotalBytes 在接口中 Processpublic long getDoneBytes()
getDoneBytes 在接口中 Processpublic boolean isDone()
Processpublic void addDoneBytes(long delt)
public boolean isUndoneAndUnreached(long bytes)
Copyright © 2025 zhouxu. All rights reserved.