public class InputStreamRequestBody
extends com.squareup.okhttp.RequestBody
InputStream
.Modifier and Type | Method and Description |
---|---|
com.squareup.okhttp.MediaType |
contentType() |
static com.squareup.okhttp.RequestBody |
create(com.squareup.okhttp.MediaType mediaType,
InputStream inputStream)
Creates the @link
RequestBody from an @link InputStream |
void |
writeTo(okio.BufferedSink sink) |
public static com.squareup.okhttp.RequestBody create(com.squareup.okhttp.MediaType mediaType, InputStream inputStream)
RequestBody
from an @link InputStream
mediaType
- the media typeinputStream
- the input streampublic com.squareup.okhttp.MediaType contentType()
contentType
in class com.squareup.okhttp.RequestBody
public void writeTo(okio.BufferedSink sink) throws IOException
writeTo
in class com.squareup.okhttp.RequestBody
IOException
Copyright © 2015–2016. All rights reserved.