Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class okhttp3.RequestBody

        okhttp3.RequestBody.Companion
    • Field Summary

      • Fields inherited from class okhttp3.RequestBody

        Companion
    • 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.
      • Methods inherited from class okhttp3.RequestBody

        contentLength, create, create, create, create, create, create, create, create, create, create, create, create, create, isDuplex, isOneShot
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IServerStreamRequestBody

        public IServerStreamRequestBody​(okhttp3.MediaType contentType,
                                        java.io.InputStream inputStream)
    • Method Detail

      • contentType

        public okhttp3.MediaType contentType()
        Specified by:
        contentType in class okhttp3.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 class okhttp3.RequestBody
        Parameters:
        sink - Output Buffer
        Throws:
        java.io.IOException - IO Exception