e-CryptIt Engine - Compression Xojo Plugin |

# EinhugurZipArchives.ZipArchiveReader Class (console safe)

A ZipArchiveReader class to read from or to extract a Zip archive.
Note:This class is in EinhugurZipArchives Namespace

ZipArchive
ZipArchiveReader

class EinhugurZipArchives.ZipArchiveReader

#### Constructors

ZipArchiveReader (console safe) | Constructor with no parameters for the ZipArchiveReader class.

#### Properties

EntryCount (Inherited) (console safe) | Count of entries in the zip archive.
IsOpen (Inherited) (console safe) | Returns true if the archive is open else false.
IsZip64 (Inherited) (console safe) | Returns true if the zip archive is Zip64 archive, else false.
LastError (Inherited) (console safe) | Returns the last error that occurred by last operation that was executed or zero if no error.

#### Methods

Close (Inherited) (console safe) | Closes the archive and finalises all unsaved changes.
EntryAt (Inherited) (console safe) | Returns a entry with full details in the Zip Archive at a given index.
EntryIsDirectory (Inherited) (console safe) | Returns true if a entry in the Zip Archive at a given index is a directory, else false.
EntryName (Inherited) (console safe) | Gets name of a entry in the Zip Archive at a given index.
ExtractAll (console safe) | Extracts all entries from the zip file to a given location.
ExtractDirectoryFromEntryIndex (console safe) | Extracts directory from a given index in the ZipArchive
ExtractFileFromEntryIndex (console safe) | Extracts file from a given index in the ZipArchive
ExtractFileToStringFromEntryIndex (console safe) | Extracts file to a string from a given index in the ZipArchive
ExtractFromEntryIndex (console safe) | Extracts file or directory from a given index in the ZipArchive
ExtractToFile (console safe) | Low level function to Extract to a file from a entry.
GetArchiveWriter (console safe) | Converts ZipArchiveReader to ZipArchiveWriter. This function is good to use to add entries to existing Zip file.
Open (console safe) | Open the zip archive.

#### Notes

Note:
Since this class is in namespace then you address it like this:
Dim zip as EinhugurZipArchives.ZipArchiveReader
or
using EinhugurZipArchives
Dim zip as ZipArchiveReader
Extract all example:
Dim f as FolderItem
Dim outFolder as FolderItem
Dim zip as EinhugurZipArchives.ZipArchiveReader
f = GetOpenFolderItem(FileTypes1.Zip)
outFolder = SelectFolder()
if outFolder = nil then
return
end if
if f <> nil then
zip = new EinhugurZipArchives.ZipArchiveReader()
zip.Open(f)
if zip.IsOpen then
zip.ExtractAll(outFolder)
else
MsgBox "Could not open file"
end if
end if
Known limitations:
Encrypted entries are not supported.
Apple and Microsoft extensions for special file flags are not supported.
Multi disk files are not supported.
No old style MacOS 9 resource forks are supported

#### Supported Platforms:

- macOS Intel 64 bit
- macOS Apple Silicon
- Windows 32 bit
- Windows 64 bit
- Windows ARM 64 bit
- Linux 32 bit
- Linux 64 bit
- Linux ARM 32 bit
- Linux ARM 64 bit
- iOS