Adobe Air Native Extension to Obj-C UnRar Lib
C Objective-C ActionScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ANTBUILD
AS/src/es/xperiments/xtensions
IOS/AneUnRar
PRODUCTS
build
demo
.gitignore
LICENSE
README.md

README.md

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