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 theLICENSE 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
- getReady
- isSupported
- extractFileAsync
- extractFileSync
- extractRarAsync
- extractRarSync
- getFilesAsync
- getFilesSync
dispose
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
复制代码
相关链接:
https://github.com/xperiments/ANEUnRar
相关下载:
IOS zip 解压/压缩ANE
|