Package org.arvados.client.api.client
Class CountingFileRequestBody
- java.lang.Object
-
- okhttp3.RequestBody
-
- org.arvados.client.api.client.CountingFileRequestBody
-
public class CountingFileRequestBody extends okhttp3.RequestBody
Based on: https://gist.github.com/eduardb/dd2dc530afd37108e1ac
-
-
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)
-
-
-
Field Detail
-
SEGMENT_SIZE
protected static final int SEGMENT_SIZE
- See Also:
- Constant Field Values
-
CONTENT_BINARY
protected static final okhttp3.MediaType CONTENT_BINARY
-
listener
protected final ProgressListener listener
-
requestBodyData
protected final T requestBodyData
-
-
Method Detail
-
contentLength
public long contentLength()
- Overrides:
contentLength
in classokhttp3.RequestBody
-
writeTo
public void writeTo(okio.BufferedSink sink)
- Specified by:
writeTo
in classokhttp3.RequestBody
-
contentType
public okhttp3.MediaType contentType()
- Specified by:
contentType
in classokhttp3.RequestBody
-
-