Package com.dropbox.core.v2.paper
Class DocsDownloadBuilder
- java.lang.Object
-
- com.dropbox.core.v2.DbxDownloadStyleBuilder<PaperDocExportResult>
-
- com.dropbox.core.v2.paper.DocsDownloadBuilder
-
public class DocsDownloadBuilder extends DbxDownloadStyleBuilder<PaperDocExportResult>
The request builder returned byDbxUserPaperRequests.docsDownloadBuilder(java.lang.String, com.dropbox.core.v2.paper.ExportFormat)
.Use this class to set optional request parameters and complete the request.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DbxDownloader<PaperDocExportResult>
start()
Issues the download request using this builder's request parameters and returns aDbxDownloader
for reading the response body.-
Methods inherited from class com.dropbox.core.v2.DbxDownloadStyleBuilder
download, getHeaders, range, range
-
-
-
-
Method Detail
-
start
public DbxDownloader<PaperDocExportResult> start() throws DocLookupErrorException, DbxException
Description copied from class:DbxDownloadStyleBuilder
Issues the download request using this builder's request parameters and returns aDbxDownloader
for reading the response body. Callers should fully read the response body usingDbxDownloader.getInputStream()
and close the downloader afterwards (seeDbxDownloader.close()
). This will allow for proper resource deallocation and connection re-use.. SeeDbxDownloadStyleBuilder.download(java.io.OutputStream)
convenience method for a simpler way to complete the request.- Specified by:
start
in classDbxDownloadStyleBuilder<PaperDocExportResult>
- Returns:
DbxDownloader
used to download data and read the response.- Throws:
DbxException
- if an error occursing issuing the requestDocLookupErrorException
-
-