public class InputStreamRequestBody
extends com.squareup.okhttp.RequestBody
InputStream.| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
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 InputStreammediaType - the media typeinputStream - the input streampublic com.squareup.okhttp.MediaType contentType()
contentType in class com.squareup.okhttp.RequestBodypublic long contentLength()
contentLength in class com.squareup.okhttp.RequestBodypublic void writeTo(okio.BufferedSink sink)
throws IOException
writeTo in class com.squareup.okhttp.RequestBodyIOExceptionCopyright © 2015–2016. All rights reserved.