public class InputStreamRequestBody
extends okhttp3.RequestBody
InputStream
.Modifier and Type | Method and Description |
---|---|
okhttp3.MediaType |
contentType() |
static okhttp3.RequestBody |
create(okhttp3.MediaType mediaType,
java.io.InputStream inputStream)
Creates the @link
RequestBody from an @link InputStream . |
void |
writeTo(okio.BufferedSink sink) |
public static okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.io.InputStream inputStream)
RequestBody
from an @link InputStream
.mediaType
- the media typeinputStream
- the input streampublic okhttp3.MediaType contentType()
contentType
in class okhttp3.RequestBody
public void writeTo(okio.BufferedSink sink) throws java.io.IOException
writeTo
in class okhttp3.RequestBody
java.io.IOException