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.
Original UnRAR 3.9.10 source code
- openFile
- getReady
- isSupported
- extractFileAsync
- extractFileSync
- extractRarAsync
- extractRarSync
- getFilesAsync
- getFilesSync
- dispose
/**
* Open the RAR file to process
* @param rarFile:String
* @param skipInvisibleFiles:Boolean
* @return void
*/
public function openFile( rarFile:File , skipInvisibleFiles:Boolean = false ):Boolean
/**
* 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
/**
* Check if the extension is supported
* @return Boolean
*/
public static function isSupported():Boolean
{
return _isSupported;
}
/**
* 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
/**
* 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
/**
* Asynchronously Extracts the RAR file to dir
*
* @param outputDir:String
* @return void
*/
public function extractRarAsync( outputDir:File ):Boolean
/**
* Synchronously Extracts the RAR file to dir
*
* @param outputDir:String
* @return Boolean
*/
public function extractRarSync( outputDir:File ):Boolean
/**
* Gets a single file from rar and extracts it Asynchronously
* @return void
*/
public function getFilesAsync( ):Boolean
/**
* Gets a single file from rar and extracts it Synchronously
* @return Array
*/
public function getFilesSync( ):Array
/**
* Disposes the AneUnRar extension
*/
public function dispose():void