public class DocsDownloadBuilder extends DbxDownloadStyleBuilder<PaperDocExportResult>
DbxUserPaperRequests.docsDownloadBuilder(java.lang.String, com.dropbox.core.v2.paper.ExportFormat)
.
Use this class to set optional request parameters and complete the request.
Modifier and Type | Method and Description |
---|---|
DbxDownloader<PaperDocExportResult> |
start()
Issues the download request using this builder's request parameters and returns a
DbxDownloader for reading the response body. |
download, getHeaders, range, range
public DbxDownloader<PaperDocExportResult> start() throws DocLookupErrorException, DbxException
DbxDownloadStyleBuilder
DbxDownloader
for reading the response body.
Callers should fully read the response body using DbxDownloader.getInputStream()
and
close the downloader afterwards (see DbxDownloader.close()
). This will allow for proper
resource deallocation and connection re-use..
See DbxDownloadStyleBuilder.download(java.io.OutputStream)
convenience method for a simpler way to complete the request.start
in class DbxDownloadStyleBuilder<PaperDocExportResult>
DbxDownloader
used to download data and read the response.DbxException
- if an error occursing issuing the requestDocLookupErrorException