Package com.microstrategy.webapi.restApi
Class IServerStreamRequestBody
- java.lang.Object
-
- okhttp3.RequestBody
-
- com.microstrategy.webapi.restApi.IServerStreamRequestBody
-
public class IServerStreamRequestBody extends okhttp3.RequestBody
Request 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.MediaType
contentType()
void
writeTo(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:
contentType
in classokhttp3.RequestBody
-
writeTo
public void writeTo(okio.BufferedSink sink) throws java.io.IOException
Write the content of input stream to the output buffer and close the input stream when done.- Specified by:
writeTo
in classokhttp3.RequestBody
- Parameters:
sink
- Output Buffer- Throws:
java.io.IOException
- IO Exception
-
-