Package com.dropbox.core.v2.files
Class UploadSessionFinishUploader
- java.lang.Object
-
- com.dropbox.core.DbxUploader<FileMetadata,UploadSessionFinishError,UploadSessionFinishErrorException>
-
- com.dropbox.core.v2.files.UploadSessionFinishUploader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class UploadSessionFinishUploader extends DbxUploader<FileMetadata,UploadSessionFinishError,UploadSessionFinishErrorException>
TheDbxUploaderreturned byDbxUserFilesRequests.uploadSessionFinish(UploadSessionCursor,CommitInfo,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 (seeDbxUploaderfor examples).
-
-
Constructor Summary
Constructors Constructor Description UploadSessionFinishUploader(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 UploadSessionFinishErrorExceptionnewException(DbxWrappedException error)-
Methods inherited from class com.dropbox.core.DbxUploader
abort, close, finish, getOutputStream, getOutputStream, uploadAndFinish, uploadAndFinish, uploadAndFinish, uploadAndFinish
-
-
-
-
Constructor Detail
-
UploadSessionFinishUploader
public UploadSessionFinishUploader(HttpRequestor.Uploader httpUploader, java.lang.String userId)
Creates a new instance of this uploader.- Parameters:
httpUploader- Initiated HTTP upload request- Throws:
java.lang.NullPointerException- ifhttpUploaderisnull
-
-
Method Detail
-
newException
protected UploadSessionFinishErrorException newException(DbxWrappedException error)
- Specified by:
newExceptionin classDbxUploader<FileMetadata,UploadSessionFinishError,UploadSessionFinishErrorException>
-
-