Class CountingFileRequestBody


  • public class CountingFileRequestBody
    extends okhttp3.RequestBody
    Based on: https://gist.github.com/eduardb/dd2dc530afd37108e1ac
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long contentLength()  
      okhttp3.MediaType contentType()  
      void writeTo​(okio.BufferedSink sink)  
      • Methods inherited from class okhttp3.RequestBody

        create, create, create, create, create
      • Methods inherited from class java.lang.Object

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

      • contentLength

        public long contentLength()
        Overrides:
        contentLength in class okhttp3.RequestBody
      • contentType

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

        public void writeTo​(okio.BufferedSink sink)
        Specified by:
        writeTo in class okhttp3.RequestBody