Package com.microstrategy.webapi.restApi
Class IServerStreamRequestBody
- java.lang.Object
 - 
- okhttp3.RequestBody
 - 
- com.microstrategy.webapi.restApi.IServerStreamRequestBody
 
 
 
- 
public class IServerStreamRequestBody extends okhttp3.RequestBodyRequest body with stream for IServer APIs. The stream will be automatically closed when the transfer is done. 
- 
- 
Constructor Summary
Constructors Constructor Description IServerStreamRequestBody(okhttp3.MediaType contentType, java.io.InputStream inputStream) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.MediaTypecontentType()voidwriteTo(okio.BufferedSink sink)Write the content of input stream to the output buffer and close the input stream when done. 
 - 
 
- 
- 
Method Detail
- 
contentType
public okhttp3.MediaType contentType()
- Specified by:
 contentTypein classokhttp3.RequestBody
 
- 
writeTo
public void writeTo(okio.BufferedSink sink) throws java.io.IOExceptionWrite the content of input stream to the output buffer and close the input stream when done.- Specified by:
 writeToin classokhttp3.RequestBody- Parameters:
 sink- Output Buffer- Throws:
 java.io.IOException- IO Exception
 
 - 
 
 -