loveq369 / ANEUnRar

Adobe Air Native Extension to Obj-C UnRar Lib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AneUnRar Adobe AIR Native UnRAR iOS wrapper

A simple wrapper to the Cooliris UnRAR iOS class interface.

AneUnRar is copyright 2012 Pedro Casaubon. and available under Apache 2.0 license. See the LICENSE file in the project for more information.

IMPORTANT: AneUnRar includes some other open-source projects and such projects remain under their own license.

Cooliris UnRAR lib

Original UnRAR 3.9.10 source code

Methods

openFile

    /**
     * Open the RAR file to process
     * @param rarFile:String
     * @param skipInvisibleFiles:Boolean
     * @return void
     */
    public function openFile( rarFile:File , skipInvisibleFiles:Boolean = false ):Boolean

getReady

    /**
     * Gets the instance status semaphore.
     * If status is false, some process is executing in the background.
     * You can call only one command at time.
     * To process commands in parallel create new AneUnRar instances.
     * @return Boolean
     */                 
    public function getReady( ):Boolean

isSupported

    /**
     * Check if the extension is supported
     * @return Boolean
     */
    public static function isSupported():Boolean
    {
        return _isSupported;
    }

extractFileAsync

    /**
     * Asynchronously Extracts a unique file from the compressed RAR
     * 
     * @param fileName:String Path from the file to extract
     * @param outputFileName:String Path to the destination file to extract
     * @return void
     */
    public function extractFileAsync( fileName:String, outputFile:File ):Boolean

extractFileSync

    /**
     * Synchronously Extracts one file from RAR to disk Synchronous
     * 
     * @param fileName:String
     * @param outputFileName:String
     * @return Boolean
     */
    public function extractFileSync( fileName:String, outputFile:File ):Boolean

extractRarAsync

    /**
     * Asynchronously Extracts the RAR file to dir  
     * 
     * @param outputDir:String
     * @return void
     */
    public function extractRarAsync( outputDir:File ):Boolean

extractRarSync

    /**
     * Synchronously Extracts the RAR file to dir 
     * 
     * @param outputDir:String
     * @return Boolean
     */
    public function extractRarSync( outputDir:File ):Boolean

getFilesAsync

    /**
     * Gets a single file from rar and extracts it Asynchronously
     * @return void
     */
    public function getFilesAsync( ):Boolean

getFilesSync

    /**
     * Gets a single file from rar and extracts it Synchronously
     * @return Array
     */
    public function getFilesSync( ):Array

dispose

    /**
     * Disposes the AneUnRar extension
     */
    public function dispose():void

About

Adobe Air Native Extension to Obj-C UnRar Lib

License:Other


Languages

Language:C 36.1%Language:Objective-C 36.0%Language:ActionScript 26.1%Language:C++ 1.0%Language:Smarty 0.9%