LargeFileUploadTask<UploadType> Class

  • java.lang.Object
    • com.microsoft.graph.tasks.LargeFileUploadTask<UploadType>

Type Parameters

UploadType

the upload item type

public class LargeFileUploadTask<UploadType>

ChunkedUpload service provider

Constructor Summary

Constructor Description
LargeFileUploadTask(IUploadSession uploadSession, IBaseClient<?> client, InputStream inputStream, long streamSize, Class<UploadType> uploadTypeClass)

Creates the ChunkedUploadProvider

Method Summary

Modifier and Type Method and Description
LargeFileUploadResult<UploadType> upload()

Uploads content to remote upload session based on the input stream

LargeFileUploadResult<UploadType> upload(int chunkSize)

Uploads content to remote upload session based on the input stream

LargeFileUploadResult<UploadType> upload(int chunkSize, List<Option> options)

Uploads content to remote upload session based on the input stream

LargeFileUploadResult<UploadType> upload(int chunkSize, List<Option> options, IProgressCallback progressCallback)

Uploads content to remote upload session based on the input stream

java.util.concurrent.CompletableFuture<LargeFileUploadResult<UploadType>> uploadAsync()

Uploads content to remote upload session based on the input stream

java.util.concurrent.CompletableFuture<LargeFileUploadResult<UploadType>> uploadAsync(int chunkSize)

Uploads content to remote upload session based on the input stream

java.util.concurrent.CompletableFuture<LargeFileUploadResult<UploadType>> uploadAsync(int chunkSize, List<Option> options)

Uploads content to remote upload session based on the input stream

java.util.concurrent.CompletableFuture<LargeFileUploadResult<UploadType>> uploadAsync(int chunkSize, List<Option> options, IProgressCallback progressCallback)

Uploads content to remote upload session based on the input stream

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

LargeFileUploadTask

public LargeFileUploadTask(IUploadSession uploadSession, IBaseClient client, InputStream inputStream, long streamSize, Class uploadTypeClass)

Creates the ChunkedUploadProvider

Parameters:

uploadSession - the initial upload session
client - the Graph client
inputStream - the input stream
streamSize - the stream size
uploadTypeClass - the upload type class

Method Details

upload

public LargeFileUploadResult upload()

Uploads content to remote upload session based on the input stream

Returns:

the result

Throws:

java.io.IOException - the IO exception that occurred during upload

upload

public LargeFileUploadResult upload(int chunkSize)

Uploads content to remote upload session based on the input stream

Parameters:

chunkSize - the customized chunk size

Returns:

the result

Throws:

java.io.IOException - the IO exception that occurred during upload

upload

public LargeFileUploadResult upload(int chunkSize, List

Uploads content to remote upload session based on the input stream

Parameters:

chunkSize - the customized chunk size
options - the upload options

Returns:

the result

Throws:

java.io.IOException - the IO exception that occurred during upload

upload

public LargeFileUploadResult upload(int chunkSize, List

Uploads content to remote upload session based on the input stream

Parameters:

chunkSize - the customized chunk size
options - the upload options
progressCallback - the callback for upload progress

Returns:

the result

Throws:

java.io.IOException - the IO exception that occurred during upload

uploadAsync

public CompletableFuture> uploadAsync()

Uploads content to remote upload session based on the input stream

Returns:

a future with the result

Throws:

java.io.IOException - the IO exception that occurred during upload

uploadAsync

public CompletableFuture> uploadAsync(int chunkSize)

Uploads content to remote upload session based on the input stream

Parameters:

chunkSize - the customized chunk size

Returns:

a future with the result

Throws:

java.io.IOException - the IO exception that occurred during upload

uploadAsync

public CompletableFuture> uploadAsync(int chunkSize, List

Uploads content to remote upload session based on the input stream

Parameters:

chunkSize - the customized chunk size
options - the upload options

Returns:

a future with the result

Throws:

java.io.IOException - the IO exception that occurred during upload

uploadAsync

public CompletableFuture> uploadAsync(int chunkSize, List

Uploads content to remote upload session based on the input stream

Parameters:

chunkSize - the customized chunk size
options - the upload options
progressCallback - the callback for upload progress

Returns:

a future with the result

Throws:

java.io.IOException - the IO exception that occurred during upload

Applies to