Package com.dropbox.core.v2.files
Class UploadSessionAppendV2Uploader
- java.lang.Object
-
- com.dropbox.core.DbxUploader<java.lang.Void,UploadSessionLookupError,UploadSessionLookupErrorException>
-
- com.dropbox.core.v2.files.UploadSessionAppendV2Uploader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class UploadSessionAppendV2Uploader extends DbxUploader<java.lang.Void,UploadSessionLookupError,UploadSessionLookupErrorException>
TheDbxUploader
returned byDbxUserFilesRequests.uploadSessionAppendV2(UploadSessionCursor,boolean)
.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 (seeDbxUploader
for examples).
-
-
Constructor Summary
Constructors Constructor Description UploadSessionAppendV2Uploader(HttpRequestor.Uploader httpUploader, java.lang.String userId)
Creates a new instance of this uploader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UploadSessionLookupErrorException
newException(DbxWrappedException error)
-
Methods inherited from class com.dropbox.core.DbxUploader
abort, close, finish, getOutputStream, getOutputStream, uploadAndFinish, uploadAndFinish, uploadAndFinish, uploadAndFinish
-
-
-
-
Constructor Detail
-
UploadSessionAppendV2Uploader
public UploadSessionAppendV2Uploader(HttpRequestor.Uploader httpUploader, java.lang.String userId)
Creates a new instance of this uploader.- Parameters:
httpUploader
- Initiated HTTP upload request- Throws:
java.lang.NullPointerException
- ifhttpUploader
isnull
-
-
Method Detail
-
newException
protected UploadSessionLookupErrorException newException(DbxWrappedException error)
- Specified by:
newException
in classDbxUploader<java.lang.Void,UploadSessionLookupError,UploadSessionLookupErrorException>
-
-