守望者--AIR技术交流

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
热搜: ANE FlasCC 炼金术
查看: 2169|回复: 6

IOS zip 解压/压缩ANE

[复制链接]
  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52623
    钢镚
    1422

    开源英雄守望者

    发表于 2015-1-29 16:07:18 | 显示全部楼层 |阅读模式
    应用下载
    应用名称: ANEZipFile
    支持64位:
    当前版本: 未知
    运行平台: IOS 
    开发语言: ActionScript 3 其他 
    应用类别: ANE-C/C++
    应用简介: Adobe AIR iOS Native Extension to zip/unzip files.
    ANEZipFile
    Adobe AIR iOS Native Extension to zip/unzip files.
    Uses a slightly modified verion of SSZipArchive Obj-C https://github.com/soffes/ssziparchive
    Features:Unzip
    • Unzip Files Asynchronously
    • Unzip password protected files
    • Unzip single file from zip to ByteArray ( Sync/Async )
    • List Files inside zip
    • Determine if zip is password protected
    Zip
    • Zip contents of a directory from FileSystem Asynchronously
    • Zip group of Files from Filesystem Asynchronously
    • Append files from FileSystem to zip ( Sync/Async )
    • Append ByteArray Data to a file inside zip ( Sync/Async )
    Todo
    • Add working example
    • Enable creation of password protected zips
    Actionscript ClassesANEZipUtils Methods
    1. listDirToZip(folder : File) : Array;
    复制代码
    List Directory contents of folder.Returns an array of file paths.
    1. extractFile(zipfile : File, fileName : String, password : String = "") : ByteArray;
    复制代码
    Synchronously gets the contents of a single file in zip.Return ByteArray data of the extracted file.Pass a password if the zip file is password protected
    1. extractFileAsync(zipfile : File, fileName : String, password : String = "") : void;
    复制代码

    ASynchronously gets the contents of a single file in zip.Pass a password if the zip file is password protected.Dispatches ANEZipFileEvent.UNZIP_FILE_BYTES.    event.resultBytes -> will contain the file ByteArray representation.
    1. getZipContents(zipfile : File) : Array;
    复制代码
    Get a list of the files inside the zip
    1. isPasswordProtected(zipfile : File) : Boolean;
    复制代码
    Determines if the provided zip file is password protected
    1. unzip(zipfile : File, destination : File, overwrite : Boolean = false, password : String = "") : void;
    复制代码
    Unzips a zip file to the filesystem.
    Dispatches ANEZipFileEvent.UNZIP_START when the process is started.Dispatches ANEZipFileEvent.UNZIP_END when the process is finished.   
        event.eventData will contain:   
        * source        -> path of original zip file   
        * destination   -> path of the destination dirDispatches ANEZipFileEvent.UNZIP_PROGRESS while processing.  
      event.eventData will contain:   
        * current   -> current index of decompressed file   
        * total     -> total files to decompress inside zip   
        * path      -> current decompressed file path
    1. zipDirectory(outputZip : File, sourceDirectory : File) : void;
    复制代码
    Zips the contents of a directoryDispatches ANEZipFileEvent.
    ZIP_START when the process is started.
        event.eventData will contain:   
        * path   -> Path to the generated zip fileDispatches ANEZipFileEvent.ZIP_END when the process is finished.
        event.eventData will contain:   
        * path      -> Path to the generated zip file   
        * success   -> Success of the zip actionDispatches ANEZipFileEvent.ZIP_PROGRESS while processing.   
        event.eventData will contain:   
        * current   -> current index of compressed file
        * total     -> total files to compress inside zip
    1. zipFiles(outputZip : File, sourceFiles : Array, destinationFiles : Array = null) : void;
    复制代码
    Zips files to a zip.Dispatches ANEZipFileEvent.ZIP_START when the process is started.
        event.eventData will contain:
        * path   -> Path to the generated zip fileDispatches ANEZipFileEvent.ZIP_END when the process is finished.
        event.eventData will contain:
        * path      -> Path to the generated zip file
        * success   -> Success of the zip actionDispatches ANEZipFileEvent.ZIP_PROGRESS while processing.
        event.eventData will contain:
        * current   -> current index of compressed file
        * total     -> total files to compress inside zip
    ANEZipFile Methods




    1. addFile(file : File, destination : String = "") : Boolean;
    复制代码
    Add a file to the zip
    1. addFileAsync(file : File, destination : String = "") : void;
    复制代码
    Add a file to the zip ASynchronously
    1. close() : Boolean;
    复制代码
    Closes de current zip file
    1. dispose() : void;
    复制代码
    Disposes instance
    1. open(zipfile : File, fileMode : uint = 0) : Boolean;
    复制代码
    Open a zip file for create / append files.Avaliable filemodes are:
        * ANEZipFile.FILE_MODE_CREATE
        * ANEZipFile.FILE_MODE_APPEND
    1. writeBytes(bytes : ByteArray, fileName : String) : Boolean;
    复制代码
    Write ByteArray data to a file in zip
    1. writeBytesAsync(bytes : ByteArray, fileName : String) : void;
    复制代码
    Write ByteArray data to a file in zip ASynchronously



    License

    ANEZipFile by Pedro Casaubon is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.

    A slightly modified version of SSZipArchive that is licensed under the MIT license

    Thanks

    Thanks soffes for creating SSZipArchive which ANEZipFile is based on









    相关链接:


    https://github.com/xperiments/ANEZipFile



    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?立即注册

    x
    守望者AIR技术交流社区(www.airmyth.com)
    回复

    使用道具 举报

  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52623
    钢镚
    1422

    开源英雄守望者

     楼主| 发表于 2015-1-29 18:07:16 | 显示全部楼层
    相关下载:

    IOS RAR解压ANE
    守望者AIR技术交流社区(www.airmyth.com)
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    0

    主题

    3

    帖子

    91

    积分

    列兵

    Rank: 2

    威望
    0
    贡献
    0
    金币
    74
    钢镚
    0
    发表于 2015-6-1 14:31:06 | 显示全部楼层
    请问支持64位吗。

    评分

    参与人数 1金币 +20 收起 理由
    破晓 + 20

    查看全部评分

    守望者AIR技术交流社区(www.airmyth.com)
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52623
    钢镚
    1422

    开源英雄守望者

     楼主| 发表于 2015-6-2 09:40:34 | 显示全部楼层
    fubai 发表于 2015-6-1 14:31
    请问支持64位吗。

    好像不支持
    守望者AIR技术交流社区(www.airmyth.com)
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    0

    主题

    3

    帖子

    91

    积分

    列兵

    Rank: 2

    威望
    0
    贡献
    0
    金币
    74
    钢镚
    0
    发表于 2015-6-3 18:03:34 | 显示全部楼层
    好吧。。。。。。

    评分

    参与人数 1金币 +20 收起 理由
    破晓 + 20

    查看全部评分

    守望者AIR技术交流社区(www.airmyth.com)
    回复

    使用道具 举报

  • TA的每日心情
    擦汗
    2018-4-10 15:18
  • 签到天数: 447 天

    [LV.9]以坛为家II

    1742

    主题

    2094

    帖子

    13万

    积分

    超级版主

    Rank: 18Rank: 18Rank: 18Rank: 18Rank: 18

    威望
    562
    贡献
    29
    金币
    52623
    钢镚
    1422

    开源英雄守望者

     楼主| 发表于 2015-6-4 09:05:38 | 显示全部楼层
    守望者AIR技术交流社区(www.airmyth.com)
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    0

    主题

    3

    帖子

    91

    积分

    列兵

    Rank: 2

    威望
    0
    贡献
    0
    金币
    74
    钢镚
    0
    发表于 2015-6-4 10:36:39 | 显示全部楼层
    破晓 发表于 2015-6-4 09:05
    http://myappsnippet.com/zip-manager-adobe-air-extension/

    这里有个收费的

    谢谢。。。。。。

    评分

    参与人数 1金币 +20 收起 理由
    破晓 + 20

    查看全部评分

    守望者AIR技术交流社区(www.airmyth.com)
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    
    关闭

    站长推荐上一条 /4 下一条

    QQ|手机版|Archiver|网站地图|小黑屋|守望者 ( 京ICP备14061876号

    GMT+8, 2024-3-29 23:42 , Processed in 0.070011 second(s), 41 queries .

    守望者AIR

    守望者AIR技术交流社区

    本站成立于 2014年12月31日

    快速回复 返回顶部 返回列表