UploadType - the upload item typepublic class ChunkedUploadProvider<UploadType>
extends java.lang.Object
| Constructor and Description |
|---|
ChunkedUploadProvider(UploadSession uploadSession,
IGraphServiceClient client,
java.io.InputStream inputStream,
long streamSize,
java.lang.Class<UploadType> uploadTypeClass)
Creates the ChunkedUploadProvider
|
| Modifier and Type | Method and Description |
|---|---|
void |
upload(IProgressCallback<UploadType> callback,
int... configs)
Uploads content to remote upload session based on the input stream
|
void |
upload(java.util.List<Option> options,
IProgressCallback<UploadType> callback,
int... configs)
Uploads content to remote upload session based on the input stream
|
public ChunkedUploadProvider(UploadSession uploadSession, IGraphServiceClient client, java.io.InputStream inputStream, long streamSize, java.lang.Class<UploadType> uploadTypeClass)
uploadSession - the initial upload sessionclient - the Graph clientinputStream - the input streamstreamSize - the stream sizeuploadTypeClass - the upload type classpublic void upload(java.util.List<Option> options, IProgressCallback<UploadType> callback, int... configs) throws java.io.IOException
options - the upload optionscallback - the progress callback invoked during uploadingconfigs - the optional configurations for the upload options. [0] should be the customized chunk
size and [1] should be the maxRetry for upload retry.java.io.IOException - the IO exception that occurred during uploadpublic void upload(IProgressCallback<UploadType> callback, int... configs) throws java.io.IOException
callback - the progress callback invoked during uploadingconfigs - the optional configurations for the upload options. [0] should be the customized chunk
size and [1] should be the maxRetry for upload retry.java.io.IOException - the IO exception that occurred during upload