Package com.dropbox.core.v2.files
Class PaperUpdateUploader
- java.lang.Object
-
- com.dropbox.core.DbxUploader<PaperUpdateResult,PaperUpdateError,PaperUpdateErrorException>
-
- com.dropbox.core.v2.files.PaperUpdateUploader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class PaperUpdateUploader extends DbxUploader<PaperUpdateResult,PaperUpdateError,PaperUpdateErrorException>
TheDbxUploaderreturned byDbxUserFilesRequests.paperUpdate(String,ImportFormat,PaperDocUpdatePolicy,Long).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 PaperUpdateUploader(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 PaperUpdateErrorExceptionnewException(DbxWrappedException error)-
Methods inherited from class com.dropbox.core.DbxUploader
abort, close, finish, getOutputStream, getOutputStream, uploadAndFinish, uploadAndFinish, uploadAndFinish, uploadAndFinish
-
-
-
-
Constructor Detail
-
PaperUpdateUploader
public PaperUpdateUploader(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 PaperUpdateErrorException newException(DbxWrappedException error)
- Specified by:
newExceptionin classDbxUploader<PaperUpdateResult,PaperUpdateError,PaperUpdateErrorException>
-
-