Class CountingStreamRequestBody


  • public class CountingStreamRequestBody
    extends okhttp3.RequestBody
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static okhttp3.MediaType CONTENT_BINARY  
      protected ProgressListener listener  
      protected T requestBodyData  
      protected static int SEGMENT_SIZE  
    • 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
    • Field Detail

      • CONTENT_BINARY

        protected static final okhttp3.MediaType CONTENT_BINARY
      • requestBodyData

        protected final T requestBodyData
    • Method Detail

      • contentLength

        public long contentLength()
                           throws java.io.IOException
        Overrides:
        contentLength in class okhttp3.RequestBody
        Throws:
        java.io.IOException
      • writeTo

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

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