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
RequestBody from an @link InputStream . |
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.RequestBody
public void writeTo(okio.BufferedSink sink) throws IOException
writeTo
in class okhttp3.RequestBody
IOException
Copyright © 2015–2016 IBM Watson. All rights reserved.