public interface Process
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_STEP_BYTES |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getDoneBytes() |
double |
getRate()
当请求体大小未知(流式上传)时,该方法始终返回 -1
当请求体大小为 0 时,该方法始终返回 1
|
long |
getTotalBytes()
当请求体大小未知(流式上传)时,该方法返回 -1
|
boolean |
isDone()
只有当 当请求体大小已知 的情况下,该方法才可能返回 true
|
static final int DEFAULT_STEP_BYTES
Copyright © 2025 zhouxu. All rights reserved.