public final class RealResponseBody extends ResponseBody
| Constructor and Description |
|---|
RealResponseBody(String contentTypeString,
long contentLength,
okio.BufferedSource source) |
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength()
Returns the number of bytes in that will returned by
ResponseBody.bytes(), or ResponseBody.byteStream(), or
-1 if unknown. |
MediaType |
contentType() |
okio.BufferedSource |
source() |
bytes, byteStream, charStream, close, create, create, create, stringpublic MediaType contentType()
contentType in class ResponseBodypublic long contentLength()
ResponseBodyResponseBody.bytes(), or ResponseBody.byteStream(), or
-1 if unknown.contentLength in class ResponseBodypublic okio.BufferedSource source()
source in class ResponseBodyCopyright © 2019. All rights reserved.