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