UnzipStream
Description
- Derived from
-
Disposable abstract
IPathInfo
The UnzipStream class is used to read archive data stream sequentially, visiting (and optionally extracting) the archive entries along the way.
To extract zero or more entries of an archive with this class, perform the following steps:
-
Use IFileOps.Unzip or IDataStream.Unzip to obtain an UnzipStream object.
-
Use Next to move to the next archive entry.
-
Go to 2 to skip the current archive entry.
-
or -
Use Data to extract the data of the current archive entry.
-
-
Go to 2 to continue with processing the archive.
The Entry method can be used to extract a single archive entry with a single call.
Public / Methods
Data
Extracts the current archive entry and returns its data.
If Next has not been called yet or its last invocation returned null, this method will throw an IOException with IOError.NotFound.
- IOException
-
If an I/O error has occurred.
Entry
Moves to the next archive entry and extracts its data.
- IOException
-
If an I/O error has occurred.
Next
Moves to the next archive entry and returns its name.
- IOException
-
If an I/O error has occurred.