public static class HttpUtils.StreamBody
extends okhttp3.RequestBody
| 构造器和说明 |
|---|
StreamBody(String contentType,
InputStream inputStream) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
contentLength() |
okhttp3.MediaType |
contentType() |
void |
writeTo(okio.BufferedSink sink) |
public StreamBody(String contentType, InputStream inputStream)
public okhttp3.MediaType contentType()
contentType 在类中 okhttp3.RequestBodypublic long contentLength()
throws IOException
contentLength 在类中 okhttp3.RequestBodyIOExceptionpublic void writeTo(okio.BufferedSink sink)
throws IOException
writeTo 在类中 okhttp3.RequestBodyIOExceptionCopyright © 2022. All rights reserved.