Package com.dropbox.core.v2.files
Class UploadSessionStartUploader
- java.lang.Object
- 
- com.dropbox.core.DbxUploader<UploadSessionStartResult,UploadSessionStartError,UploadSessionStartErrorException>
- 
- com.dropbox.core.v2.files.UploadSessionStartUploader
 
 
- 
- All Implemented Interfaces:
- java.io.Closeable,- java.lang.AutoCloseable
 
 public class UploadSessionStartUploader extends DbxUploader<UploadSessionStartResult,UploadSessionStartError,UploadSessionStartErrorException> TheDbxUploaderreturned byDbxUserFilesRequests.uploadSessionStart(com.dropbox.core.v2.files.UploadSessionStartArg).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 SummaryConstructors Constructor Description UploadSessionStartUploader(HttpRequestor.Uploader httpUploader, java.lang.String userId)Creates a new instance of this uploader.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UploadSessionStartErrorExceptionnewException(DbxWrappedException error)- 
Methods inherited from class com.dropbox.core.DbxUploaderabort, close, finish, getOutputStream, getOutputStream, uploadAndFinish, uploadAndFinish, uploadAndFinish, uploadAndFinish
 
- 
 
- 
- 
- 
Constructor Detail- 
UploadSessionStartUploaderpublic UploadSessionStartUploader(HttpRequestor.Uploader httpUploader, java.lang.String userId) Creates a new instance of this uploader.- Parameters:
- httpUploader- Initiated HTTP upload request
- Throws:
- java.lang.NullPointerException- if- httpUploaderis- null
 
 
- 
 - 
Method Detail- 
newExceptionprotected UploadSessionStartErrorException newException(DbxWrappedException error) - Specified by:
- newExceptionin class- DbxUploader<UploadSessionStartResult,UploadSessionStartError,UploadSessionStartErrorException>
 
 
- 
 
-