Interface B2PartStorer

    • Method Detail

      • getPartNumber

        int getPartNumber()
        Returns:
        The part number this object will store.
      • storePart

        B2Part storePart​(B2LargeFileStorer largeFileStorer,
                         B2UploadListener uploadListener,
                         B2CancellationToken cancellationToken)
                  throws java.io.IOException,
                         B2Exception
        Store the part this B2PartStorer is responsible for.
        Parameters:
        largeFileStorer - The object managing the storage of the whole large file.
        uploadListener - The listener that tracks upload progress events.
        cancellationToken - token to check whether the action has been cancelled
        Returns:
        The part that is stored, if successful.
        Throws:
        B2Exception - if there's trouble.
        java.io.IOException