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(java.io.File file, java.lang.Integer chunksCount, java.lang.Integer chunkNum, long totalBytes, long chunkStart, long chunkEnd, UploadProgressListener progressListener) -
Method Summary
Modifier and Type Method Description longcontentLength()okhttp3.MediaTypecontentType()java.lang.StringgetFileName()voidwriteTo(okio.BufferedSink sink)Methods inherited from class okhttp3.RequestBody
create, create, create, create, create, isDuplex, isOneShotMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
UploadChunkRequestBody
public UploadChunkRequestBody(java.io.File file, java.lang.Integer chunksCount, java.lang.Integer chunkNum, long totalBytes, long chunkStart, long chunkEnd, UploadProgressListener progressListener) throws ApiException- Throws:
ApiException
-
-
Method Details
-
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 java.io.IOException- Specified by:
writeToin classokhttp3.RequestBody- Throws:
java.io.IOException
-
getFileName
public java.lang.String getFileName()
-