public class ChunkedUploadRequest
extends java.lang.Object
| Constructor and Description |
|---|
ChunkedUploadRequest(java.lang.String requestUrl,
IOneDriveClient client,
java.util.List<Option> options,
byte[] chunk,
int chunkSize,
int maxRetry,
int beginIndex,
int totalLenth)
Construct the ChunkedUploadRequest
|
| Modifier and Type | Method and Description |
|---|---|
<UploadType> |
upload(ChunkedUploadResponseHandler<UploadType> responseHandler)
Upload a chunk with tries.
|
public ChunkedUploadRequest(java.lang.String requestUrl,
IOneDriveClient client,
java.util.List<Option> options,
byte[] chunk,
int chunkSize,
int maxRetry,
int beginIndex,
int totalLenth)
requestUrl - The upload url.client - The OneDrive client.options - The query options.chunk - The chunk byte array.chunkSize - The chunk array size.maxRetry - The limit on retry.beginIndex - The begin index of this chunk in the input stream.totalLenth - The total length of the input stream.public <UploadType> ChunkedUploadResult upload(ChunkedUploadResponseHandler<UploadType> responseHandler)