public class InputStreamRequestBody
extends okhttp3.RequestBody
| 构造器和说明 |
|---|
InputStreamRequestBody(InputStream content,
okhttp3.MediaType mediaType) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
contentLength()
Returns the number of bytes that will be written to
out in a call to writeTo(okio.BufferedSink),
or -1 if that count is unknown. |
okhttp3.MediaType |
contentType()
Returns the Content-Type header for this body.
|
void |
writeTo(okio.BufferedSink sink)
Writes the content of this request to
out. |
public InputStreamRequestBody(InputStream content, okhttp3.MediaType mediaType)
public long contentLength()
throws IOException
out in a call to writeTo(okio.BufferedSink),
or -1 if that count is unknown.contentLength 在类中 okhttp3.RequestBodyIOExceptionpublic okhttp3.MediaType contentType()
contentType 在类中 okhttp3.RequestBodypublic void writeTo(okio.BufferedSink sink)
throws IOException
out.writeTo 在类中 okhttp3.RequestBodyIOExceptionCopyright © 2017. All rights reserved.