Class InputStreamRequestBody

java.lang.Object
okhttp3.RequestBody
api.longpoll.bots.http.InputStreamRequestBody

public class InputStreamRequestBody extends okhttp3.RequestBody
Wraps InputStream into RequestBody.
  • 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    okhttp3.MediaType
     
    void
    writeTo(okio.BufferedSink bufferedSink)
     

    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 Details

    • InputStreamRequestBody

      public InputStreamRequestBody(String filename, InputStream file)
  • Method Details

    • contentType

      @Nullable public okhttp3.MediaType contentType()
      Specified by:
      contentType in class okhttp3.RequestBody
    • writeTo

      public void writeTo(@NotNull okio.BufferedSink bufferedSink) throws IOException
      Specified by:
      writeTo in class okhttp3.RequestBody
      Throws:
      IOException