public class ResponseProgressBody extends ResponseBody
| 构造器和说明 |
|---|
ResponseProgressBody(ResponseBody responseBody,
DownloadProgressListener downloadProgressListener) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
contentLength()
Returns the number of bytes in that will returned by
ResponseBody.bytes(), or ResponseBody.byteStream(), or
-1 if unknown. |
MediaType |
contentType() |
BufferedSource |
source() |
bytes, byteStream, charStream, close, create, create, create, stringpublic ResponseProgressBody(ResponseBody responseBody, DownloadProgressListener downloadProgressListener)
public MediaType contentType()
contentType 在类中 ResponseBodypublic long contentLength()
ResponseBodyResponseBody.bytes(), or ResponseBody.byteStream(), or
-1 if unknown.contentLength 在类中 ResponseBodypublic BufferedSource source()
source 在类中 ResponseBody