public class RequestProgressBody extends RequestBody
| 构造器和说明 |
|---|
RequestProgressBody(RequestBody requestBody,
UploadProgressListener uploadProgressListener) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
contentLength()
Returns the number of bytes that will be written to
out in a call to RequestBody.writeTo(com.meizu.cloud.pushsdk.networking.okio.BufferedSink),
or -1 if that count is unknown. |
MediaType |
contentType()
Returns the Content-Type header for this body.
|
void |
writeTo(BufferedSink sink)
Writes the content of this request to
out. |
public RequestProgressBody(RequestBody requestBody, UploadProgressListener uploadProgressListener)
public MediaType contentType()
RequestBodycontentType 在类中 RequestBodypublic long contentLength()
throws java.io.IOException
RequestBodyout in a call to RequestBody.writeTo(com.meizu.cloud.pushsdk.networking.okio.BufferedSink),
or -1 if that count is unknown.contentLength 在类中 RequestBodyjava.io.IOExceptionpublic void writeTo(BufferedSink sink) throws java.io.IOException
RequestBodyout.writeTo 在类中 RequestBodyjava.io.IOException