Winter Cardinal UI - v0.442.0 / UtilFileDownloader

Class: UtilFileDownloader

Table of contents

Constructors

Methods

Constructors

constructor

new UtilFileDownloader(): UtilFileDownloader

Returns

UtilFileDownloader

Methods

download

download(filename, contents, insertBom?): void

Downloads a file of the given name with the given contents.

Parameters

Name Type Description
filename string a file name
contents string file contents
insertBom? boolean false to stop the BOM insertion

Returns

void

Defined in

src/main/typescript/wcardinal/ui/util/util-file-downloader.ts:38


downloadUrl

downloadUrl(filename, url): void

Downloads a file of the given name and URL.

Parameters

Name Type Description
filename string a file name
url string a file URL

Returns

void

Defined in

src/main/typescript/wcardinal/ui/util/util-file-downloader.ts:13