Class orion.download.FileDownloader
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/fileDownloader.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
orion.download.FileDownloader(fileClient, statusService, progressService)
Requires service orion.core.ContentTypeRegistry |
Method Attributes | Method Name and Description |
---|---|
downloadFromBlob(blobContents, fileName, contentType, forceDownload, createLink)
|
|
downloadFromLocation(fileMetaData, contentType, forceDownload)
|
Class Detail
orion.download.FileDownloader(fileClient, statusService, progressService)
Requires service orion.core.ContentTypeRegistry
- Parameters:
- {orion.fileClient.FileClient} fileClient Optional
- The file client that supports readBlob API.
- {orion.status.StatusReportingService} statusService Optional, Default: null
- Optional. If defined status is reported while downloading.
- {orion.progress.ProgressService} progressService Optional, Default: null
- Optional. If defined progress is reported while downloading.
Method Detail
downloadFromBlob(blobContents, fileName, contentType, forceDownload, createLink)
- Parameters:
- blobContents
- fileName
- contentType
- forceDownload
- createLink
downloadFromLocation(fileMetaData, contentType, forceDownload)
- Parameters:
- fileMetaData
- contentType
- forceDownload