User Tools

Site Tools


built_in:zip

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
built_in:zip [2014/12/18 21:38]
bcarroll [Methods]
built_in:zip [2016/01/22 17:38] (current)
Line 1: Line 1:
 ====== ZipUtil control ====== ====== ZipUtil control ======
 ===== Create ===== ===== Create =====
-Create a ZipUtil control using the CreateZipUtil function of the app object:+Create a ZipUtil control using the CreateZipUtil function of the [[built_in:app|app]] object:
 <code>var zip = app.CreateZipUtil();</code> <code>var zip = app.CreateZipUtil();</code>
 Also you can use it in a function like this: Also you can use it in a function like this:
-<code>function unzip(zipfile, extractpath) {+<code javascript> 
 +function unzip(zipfile, extractpath) 
 +{
     var zip = app.CreateZipUtil();     var zip = app.CreateZipUtil();
     zip.Open(zipfile);     zip.Open(zipfile);
     var files = zip.List().split(",");     var files = zip.List().split(",");
-    files.forEach(function (item) {+    files.forEach(function (item) 
 +    {
         zip.Extract(item, extractpath+"/"+item);         zip.Extract(item, extractpath+"/"+item);
     });     });
Line 15: Line 18:
 </code> </code>
 ===== Methods ===== ===== Methods =====
-^Method ^Description ^ +^ Method                        ^ Description  
-|ZipUtil.Open( file ) | | +| ZipUtil.AddFilename,file )               
-|ZipUtil.Createfile ) | | +| ZipUtil.AddTextname,text               
-|ZipUtil.Close() | | +| ZipUtil.Close()                            
-|ZipUtil.Listpath ) | | +| ZipUtil.Createfile                     
-|ZipUtil.Extract( name,file ) | | +| ZipUtil.Extract( name,file )               
-|ZipUtil.AddFilename,file ) | | +| ZipUtil.Listpath                       
-|ZipUtil.AddText( name,text ) | | +| ZipUtil.Open( file )                       |
-|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.1418938714.txt.gz · Last modified: 2014/12/19 05:38 (external edit)