Package video.api.client.api.upload
Class UploadChunkRequestBody
- java.lang.Object
-
- okhttp3.RequestBody
-
- video.api.client.api.upload.UploadChunkRequestBody
-
public class UploadChunkRequestBody extends okhttp3.RequestBody
-
-
Constructor Summary
Constructors Constructor Description UploadChunkRequestBody(File file, long totalBytes, UploadPartProgressListener progressListener)UploadChunkRequestBody(File file, Integer chunksCount, Integer chunkNum, long totalBytes, long chunkStart, long chunkEnd, UploadProgressListener progressListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcontentLength()okhttp3.MediaTypecontentType()StringgetFileName()voidwriteTo(okio.BufferedSink sink)
-
-
-
Constructor Detail
-
UploadChunkRequestBody
public UploadChunkRequestBody(File file, Integer chunksCount, Integer chunkNum, long totalBytes, long chunkStart, long chunkEnd, UploadProgressListener progressListener) throws ApiException
- Throws:
ApiException
-
UploadChunkRequestBody
public UploadChunkRequestBody(File file, long totalBytes, UploadPartProgressListener progressListener) throws ApiException
- Throws:
ApiException
-
-
Method Detail
-
contentType
@Nullable public okhttp3.MediaType contentType()
- Specified by:
contentTypein classokhttp3.RequestBody
-
contentLength
public long contentLength()
- Overrides:
contentLengthin classokhttp3.RequestBody
-
writeTo
public void writeTo(okio.BufferedSink sink) throws IOException- Specified by:
writeToin classokhttp3.RequestBody- Throws:
IOException
-
getFileName
public String getFileName()
-
-