Package com.dropbox.core.v2.files
Class DownloadBuilder
- java.lang.Object
- 
- com.dropbox.core.v2.DbxDownloadStyleBuilder<FileMetadata>
- 
- com.dropbox.core.v2.files.DownloadBuilder
 
 
- 
 public class DownloadBuilder extends DbxDownloadStyleBuilder<FileMetadata> The request builder returned byDbxUserFilesRequests.downloadBuilder(java.lang.String).Use this class to set optional request parameters and complete the request. 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description DbxDownloader<FileMetadata>start()Issues the download request using this builder's request parameters and returns aDbxDownloaderfor reading the response body.DownloadBuilderwithRev(java.lang.String rev)Set value for optional field.- 
Methods inherited from class com.dropbox.core.v2.DbxDownloadStyleBuilderdownload, getHeaders, range, range
 
- 
 
- 
- 
- 
Method Detail- 
withRevpublic DownloadBuilder withRev(java.lang.String rev) Set value for optional field.- Parameters:
- rev- Please specify revision in the- pathargument to- DbxUserFilesRequests.download(String,String)instead. Must have length of at least 9 and match pattern "- [0-9a-f]+".
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
startpublic DbxDownloader<FileMetadata> start() throws DownloadErrorException, DbxException Description copied from class:DbxDownloadStyleBuilderIssues the download request using this builder's request parameters and returns aDbxDownloaderfor 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:
- startin class- DbxDownloadStyleBuilder<FileMetadata>
- Returns:
- DbxDownloaderused to download data and read the response.
- Throws:
- DbxException- if an error occursing issuing the request
- DownloadErrorException
 
 
- 
 
-