Package com.dropbox.core.v2.files
Class ExportBuilder
- java.lang.Object
- 
- com.dropbox.core.v2.DbxDownloadStyleBuilder<ExportResult>
- 
- com.dropbox.core.v2.files.ExportBuilder
 
 
- 
 public class ExportBuilder extends DbxDownloadStyleBuilder<ExportResult> The request builder returned byDbxUserFilesRequests.exportBuilder(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<ExportResult>start()Issues the download request using this builder's request parameters and returns aDbxDownloaderfor reading the response body.ExportBuilderwithExportFormat(java.lang.String exportFormat)Set value for optional field.- 
Methods inherited from class com.dropbox.core.v2.DbxDownloadStyleBuilderdownload, getHeaders, range, range
 
- 
 
- 
- 
- 
Method Detail- 
withExportFormatpublic ExportBuilder withExportFormat(java.lang.String exportFormat) Set value for optional field.- Parameters:
- exportFormat- The file format to which the file should be exported. This must be one of the formats listed in the file's export_options returned by- DbxUserFilesRequests.getMetadata(String). If none is specified, the default format (specified in export_as in file metadata) will be used.
- Returns:
- this builder
 
 - 
startpublic DbxDownloader<ExportResult> start() throws ExportErrorException, 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<ExportResult>
- Returns:
- DbxDownloaderused to download data and read the response.
- Throws:
- DbxException- if an error occursing issuing the request
- ExportErrorException
 
 
- 
 
-