$k. ZipReader

new ZipReader(zipSource)

Opens an existing ZIP Archive for reading

Parameters:
NameTypeDescription
zipSource

$k.Blob or $k.NetEntity containing the Zip data

Version
  • Experimental feature, might be removed at any time
Since
  • 5.3.3

Methods

close()

Close the archive

Version
  • Experimental feature, might be removed at any time
Since
  • 5.3.3

entries() → {Array.<object>}

Returns all entries of the Zip

Version
  • Experimental feature, might be removed at any time
Since
  • 5.3.3
Returns:

Array of file entries: [{filename: "test.txt", uncompressedSize: 123, compressedSize: 99 }]

Type: 
Array.<object>

getFile(filename) → {$k.NetEntity}

Returns a file as a NetEntity, or undefined if the file was not found

Parameters:
NameTypeDescription
filenamestring
Version
  • Experimental feature, might be removed at any time
Since
  • 5.3.3
Returns:
Type: 
$k.NetEntity