-
Notifications
You must be signed in to change notification settings - Fork 1
UnRAR.IteratorEx
UnRAR.IteratorEx
Public Class IteratorEx
Inherits UnRAR.Iterator
This class processes a RAR archive just like the Iterator class, but with additional features such as UTF-16 file names, reading encrypted headers, in-memory decompression, and more robust multi-volume archives. To create a new instance pass the RAR archive as a FolderItem
to the Constructor method. The archive is processed one entry at a time, from the first entry to the last.
Create a new instance, and access the CurrentItem method to read the headers of the current item in the archive.
Call the MoveNext method to process the current item and then advance the selection to the next item in the archive. MoveNext
will return True
until an error occurs; note that this includes the end of the archive, so check LastError for details.
Only one instance can have a given archive open at any given moment.
Dim archive As FolderItem ' assume a valid RAR archive
Dim outputdir As FolderItem ' assume a valid directory
Dim rar As New UnRAR.IteratorEx(archive)
Do
If Not rar.MoveNext(UnRAR.RAR_EXTRACT, outputdir) Then Exit Do
Loop
rar.Close
- UnRAR.Iterator class.
Wiki home | Project page | Bugs
Text and code examples are Copyright ©2013-21 Andrew Lambert, offered under the CC BY-SA 3.0 License.