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
    long contentLength()  
    okhttp3.MediaType contentType()  
    java.lang.String getFileName()  
    void writeTo​(okio.BufferedSink sink)  

    Methods inherited from class okhttp3.RequestBody

    create, create, create, create, create, isDuplex, isOneShot

    Methods 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:
      contentType in class okhttp3.RequestBody
    • contentLength

      public long contentLength()
      Overrides:
      contentLength in class okhttp3.RequestBody
    • writeTo

      public void writeTo​(okio.BufferedSink sink) throws java.io.IOException
      Specified by:
      writeTo in class okhttp3.RequestBody
      Throws:
      java.io.IOException
    • getFileName

      public java.lang.String getFileName()