Package com.dropbox.core.v2.files
Class UploadSessionAppendBatchUploader
java.lang.Object
com.dropbox.core.DbxUploader<UploadSessionAppendBatchResult,UploadSessionAppendBatchError,UploadSessionAppendBatchErrorException>
com.dropbox.core.v2.files.UploadSessionAppendBatchUploader
- All Implemented Interfaces:
Closeable,AutoCloseable
public class UploadSessionAppendBatchUploader
extends DbxUploader<UploadSessionAppendBatchResult,UploadSessionAppendBatchError,UploadSessionAppendBatchErrorException>
The
DbxUploader returned by DbxUserFilesRequests.uploadSessionAppendBatch(java.util.List,String).
Use this class to upload data to the server and complete the request.
This class should be properly closed after use to prevent resource leaks
and allow network connection reuse. Always call DbxUploader.close() when complete
(see DbxUploader for examples).
-
Constructor Summary
ConstructorsConstructorDescriptionUploadSessionAppendBatchUploader(HttpRequestor.Uploader httpUploader, String userId) Creates a new instance of this uploader. -
Method Summary
Modifier and TypeMethodDescriptionprotected UploadSessionAppendBatchErrorExceptionnewException(DbxWrappedException error) Methods inherited from class com.dropbox.core.DbxUploader
abort, close, finish, getOutputStream, getOutputStream, uploadAndFinish, uploadAndFinish, uploadAndFinish, uploadAndFinish
-
Constructor Details
-
UploadSessionAppendBatchUploader
Creates a new instance of this uploader.- Parameters:
httpUploader- Initiated HTTP upload request- Throws:
NullPointerException- ifhttpUploaderisnull
-
-
Method Details
-
newException
-