Package io.gitea

Class ProgressResponseBody

java.lang.Object
com.squareup.okhttp.ResponseBody
io.gitea.ProgressResponseBody
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable

public class ProgressResponseBody
extends com.squareup.okhttp.ResponseBody
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static interface  ProgressResponseBody.ProgressListener  
  • Constructor Summary

    Constructors 
    Constructor Description
    ProgressResponseBody​(com.squareup.okhttp.ResponseBody responseBody, ProgressResponseBody.ProgressListener progressListener)  
  • Method Summary

    Modifier and Type Method Description
    long contentLength()  
    com.squareup.okhttp.MediaType contentType()  
    okio.BufferedSource source()  

    Methods inherited from class com.squareup.okhttp.ResponseBody

    bytes, byteStream, charStream, close, create, create, create, string

    Methods inherited from class java.lang.Object

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

  • Method Details

    • contentType

      public com.squareup.okhttp.MediaType contentType()
      Specified by:
      contentType in class com.squareup.okhttp.ResponseBody
    • contentLength

      public long contentLength() throws java.io.IOException
      Specified by:
      contentLength in class com.squareup.okhttp.ResponseBody
      Throws:
      java.io.IOException
    • source

      public okio.BufferedSource source() throws java.io.IOException
      Specified by:
      source in class com.squareup.okhttp.ResponseBody
      Throws:
      java.io.IOException