public class ChunkedUploadProvider
extends java.lang.Object
| Constructor and Description |
|---|
ChunkedUploadProvider(UploadSession uploadSession,
IOneDriveClient client,
java.io.InputStream inputStream,
int streamSize)
Create the ChunkedUploadProvider
|
| Modifier and Type | Method and Description |
|---|---|
void |
upload(java.util.List<Option> options,
IProgressCallback<Item> 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)
uploadSession - the initial upload session.client - the onedrive client.inputStream - the input stream.streamSize - the stream size.public void upload(java.util.List<Option> options, IProgressCallback<Item> 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