User Tools

Site Tools


built_in:zip

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

built_in:zip [2015/03/21 17:33]
octazid [Create] formated
built_in:zip [2016/01/22 17:38]
Line 1: Line 1:
-====== ZipUtil control ====== +
-===== Create ===== +
-Create a ZipUtil control using the CreateZipUtil function of the [[built_in:app|app]] object: +
-<code>var zip = app.CreateZipUtil();</code> +
-Also you can use it in a function like this: +
-<code javascript> +
-function unzip(zipfile, extractpath) +
-+
-    var zip = app.CreateZipUtil(); +
-    zip.Open(zipfile); +
-    var files = zip.List().split(","); +
-    files.forEach(function (item) +
-    { +
-        zip.Extract(item, extractpath+"/"+item); +
-    }); +
-    zip.Close(); +
-+
-</code> +
-===== Methods ===== +
-^Method ^Description ^ +
-|ZipUtil.Open( file ) | | +
-|ZipUtil.Create( file ) | | +
-|ZipUtil.Close() | | +
-|ZipUtil.List( path ) | | +
-|ZipUtil.Extract( name,file ) | | +
-|ZipUtil.AddFile( name,file ) | | +
-|ZipUtil.AddText( name,text ) | | +
-|ZipUtil.CreateKey( file,pass,name,org ) | | +
-|ZipUtil.CreateDebugKey( file ) | | +
-|ZipUtil.Sign( fileIn,fileOut,keyStore,pass ) | | +
-|ZipUtil.UpdateManifest( fileIn, fileOut, packageName, appName, permissions, options ) | |+
built_in/zip.txt · Last modified: 2016/01/22 17:38 (external edit)