public class UploadSessionFinishUploader extends DbxUploader<FileMetadata,UploadSessionFinishError,UploadSessionFinishErrorException>
DbxUploader
returned by DbxUserFilesRequests.uploadSessionFinish(UploadSessionCursor,CommitInfo)
.
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 and Description |
---|
UploadSessionFinishUploader(HttpRequestor.Uploader httpUploader)
Creates a new instance of this uploader.
|
Modifier and Type | Method and Description |
---|---|
protected UploadSessionFinishErrorException |
newException(DbxWrappedException error) |
abort, close, finish, getOutputStream, uploadAndFinish, uploadAndFinish
public UploadSessionFinishUploader(HttpRequestor.Uploader httpUploader)
httpUploader
- Initiated HTTP upload requestNullPointerException
- if httpUploader
is null
protected UploadSessionFinishErrorException newException(DbxWrappedException error)
newException
in class DbxUploader<FileMetadata,UploadSessionFinishError,UploadSessionFinishErrorException>