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 interfaceProgressResponseBody.ProgressListener -
Constructor Summary
Constructors Constructor Description ProgressResponseBody(com.squareup.okhttp.ResponseBody responseBody, ProgressResponseBody.ProgressListener progressListener) -
Method Summary
Modifier and Type Method Description longcontentLength()com.squareup.okhttp.MediaTypecontentType()okio.BufferedSourcesource()
-
Constructor Details
-
ProgressResponseBody
public ProgressResponseBody(com.squareup.okhttp.ResponseBody responseBody, ProgressResponseBody.ProgressListener progressListener)
-
-
Method Details
-
contentType
public com.squareup.okhttp.MediaType contentType()- Specified by:
contentTypein classcom.squareup.okhttp.ResponseBody
-
contentLength
public long contentLength() throws java.io.IOException- Specified by:
contentLengthin classcom.squareup.okhttp.ResponseBody- Throws:
java.io.IOException
-
source
public okio.BufferedSource source() throws java.io.IOException- Specified by:
sourcein classcom.squareup.okhttp.ResponseBody- Throws:
java.io.IOException
-