Handles Unzipping a requesting files from an Epub Archive
Kind: global class
Extends: Input
- Archive ⇐
Input
- .createInstance()
- .open(input, [encoding]) ⇒
Promise.<any>
- .openUrl(zipUrl, [isBase64]) ⇒
Promise.<any>
- .getBlob(url, [mimeType]) ⇒
Promise.<(Blob|null)>
- .getText(url) ⇒
Promise.<(string|null)>
- .getBase64(url, [mimeType]) ⇒
Promise.<(string|null)>
Create JSZip instance
Kind: instance method of Archive
Open an archive
Kind: instance method of Archive
Returns: Promise.<any>
- zipfile
Param | Type | Description |
---|---|---|
input | string | ArrayBuffer |
|
[encoding] | string |
tells JSZip if the input data is base64 encoded |
Load and Open an archive
Kind: instance method of Archive
Returns: Promise.<any>
- zipfile
Param | Type | Description |
---|---|---|
zipUrl | string |
|
[isBase64] | boolean |
tells JSZip if the input data is base64 encoded |
Get a Blob from Archive by URL
Kind: instance method of Archive
Param | Type |
---|---|
url | string |
[mimeType] | string |
Get Text from Archive by URL
Kind: instance method of Archive
Param | Type |
---|---|
url | string |
Get a base64 encoded result from Archive by URL
Kind: instance method of Archive
Returns: Promise.<(string|null)>
- base64 encoded
Param | Type |
---|---|
url | string |
[mimeType] | string |