UploadType - The upload item type.public class ChunkedUploadProvider<UploadType>
extends java.lang.Object
| Constructor and Description |
|---|
ChunkedUploadProvider(UploadSession uploadSession,
IOneDriveClient client,
java.io.InputStream inputStream,
int streamSize,
java.lang.Class<UploadType> uploadTypeClass)
Create the ChunkedUploadProvider
|
| Modifier and Type | Method and Description |
|---|---|
void |
upload(java.util.List<Option> options,
IProgressCallback<UploadType> callback,
int... configs)
Upload content to remote upload session based on the input stream.
|
public ChunkedUploadProvider(UploadSession uploadSession, IOneDriveClient client, java.io.InputStream inputStream, int streamSize, java.lang.Class<UploadType> uploadTypeClass)
uploadSession - The initial upload session.client - The onedrive client.inputStream - The input stream.streamSize - The stream size.uploadTypeClass - The upload type class.public void upload(java.util.List<Option> options, IProgressCallback<UploadType> callback, int... configs) throws java.io.IOException
options - The upload options.callback - The progress callback invoked during uploading.configs - The optional ocnfigs for the upload options, [0] should be the customized chunk
size and the [1] should be the maxRetry for upload retry.java.io.IOException - The io exception happend during upload.