public class DocsCreateUploader extends DbxUploader<PaperDocCreateUpdateResult,PaperDocCreateError,PaperDocCreateErrorException>
DbxUploader returned by DbxUserPaperRequests.docsCreate(ImportFormat,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 and Description |
|---|
DocsCreateUploader(HttpRequestor.Uploader httpUploader,
java.lang.String userId)
Creates a new instance of this uploader.
|
| Modifier and Type | Method and Description |
|---|---|
protected PaperDocCreateErrorException |
newException(DbxWrappedException error) |
abort, close, finish, getOutputStream, uploadAndFinish, uploadAndFinish, uploadAndFinish, uploadAndFinishpublic DocsCreateUploader(HttpRequestor.Uploader httpUploader, java.lang.String userId)
httpUploader - Initiated HTTP upload requestjava.lang.NullPointerException - if httpUploader is nullprotected PaperDocCreateErrorException newException(DbxWrappedException error)
newException in class DbxUploader<PaperDocCreateUpdateResult,PaperDocCreateError,PaperDocCreateErrorException>