Top Method Summary
Options Name Purpose
ExtractAll (character) Extracts all entries of the archive into a folder Notes : Missing folders are created, existing files are overwritten. Raises an InvalidZipEntryNameException when an entry name is absolute or refers to a parent folder, before anything is extracted. @param pcFolderName The name of the target folder */
LONGCHAR ExtractText (character) Extracts an entry as text Notes : The content of the entry is expected to be UTF-8 encoded @param pcEntryName The name of the entry @return The text */
ExtractToFile (character, character) Extracts an entry into a file Notes : Missing folders are created, an existing file is overwritten. For a folder entry the folder is created. @param pcEntryName The name of the entry @param pcFileName The name of the target file */
ExtractToMemptr (character, memptr) Extracts an entry into a MEMPTR Notes : The caller is responsible for freeing the MEMPTR. An empty entry returns a MEMPTR with a size of 0. @param pcEntryName The name of the entry @param pmData OUTPUT The content of the entry */
FindEntry (character) Positions the ttEntry buffer on an entry Notes : Raises a ZipEntryNotFoundException when the archive does not contain the entry @param pcEntryName The name of the entry */
Consultingwerk.Framework.Compression.ICompressionAlgorithmFactory GetAlgorithmFactory () Returns the service that creates the CRC-32 and Inflate implementations Notes : SCL-6385. Default CompressionAlgorithmFactory, which returns the ABL Agent implementations on the ABL Agent @return The ICompressionAlgorithmFactory service */
INT64 GetDataPosition () Returns the 1-based position of the data of the entry in the ttEntry buffer Notes : Validates the local file header @return The position of the data */
Consultingwerk.Framework.Compression.ZipEntry GetEntries () Returns the entries of the archive Notes : In the order of the central directory. Returns an indeterminate array for an archive without entries. @return The entries */
Consultingwerk.Framework.Compression.ZipEntry GetEntry (character) Returns an entry of the archive Notes : Raises a ZipEntryNotFoundException when the archive does not contain the entry @param pcEntryName The name of the entry @return The entry */
LOGICAL HasEntry (character) Returns if the archive contains an entry Notes : @param pcEntryName The name of the entry @return Logical value indicating if the archive contains the entry */
LoadArchive () Reads the archive file into memory Notes : SCL-6330. Only for a reader created from a file, and only once. A file that was changed since the reader was created is detected by the validation of the local file header. */
LocateEndOfCentralDirectory (memptr, int64, int64, integer, int64) Locates the end of central directory record of the archive Notes : SCL-6330. The data is the whole archive or its end (the end of central directory record is followed by an archive comment of up to 65535 bytes). @param pmData The data that contains the end of the archive @param piDataOffset The offset of the data in the archive (0 for the whole archive) @param piEndOffset OUTPUT The offset of the end of central directory record in the archive @param piCount OUTPUT The number of entries @param piCentralOffset OUTPUT The offset of the central directory in the archive */
Consultingwerk.Framework.Compression.ZipEntry NewZipEntry () Returns a new ZipEntry instance for the entry in the ttEntry buffer Notes : @return The ZipEntry instance */
ParseCentralDirectory (memptr, int64, int64, integer) Reads the file headers of the central directory into the ttEntry temp-table Notes : SCL-6330. The data is the whole archive or the part of the archive from the start of the central directory up to the end of central directory record. @param pmData The data that contains the central directory @param piPosition The position of the first file header in the data @param piLastPosition The position of the last byte in the data before the end of central directory record @param piCount The number of entries */
ReadCentralDirectory () Reads the central directory of the archive in memory into the ttEntry temp-table Notes : */
ReadCentralDirectoryFromFile () Reads the central directory of the archive file into the ttEntry temp-table Notes : SCL-6330. Reads only the end of the file (the end of central directory record and the archive comment) and the central directory, not the whole archive */

Top Constructor Summary
Options Name Purpose
ZipArchiveReader (character) Constructor for the ZipArchiveReader class Notes : Reads the ZIP archive from a file. SCL-6330: Reads only the central directory, the archive is read on the first extraction @param pcFileName The name of the ZIP archive file */
ZipArchiveReader (memptr) Constructor for the ZipArchiveReader class Notes : Reads the ZIP archive from a MEMPTR. The reader works on a copy, so the caller may free the MEMPTR afterwards. @param pmArchive The ZIP archive */

Top Property Summary
Options Name Purpose
INTEGER EntryCount


Method Detail
Top

ExtractAll (character)

Purpose: Extracts all entries of the archive into a folder
Notes : Missing folders are created, existing files are overwritten.
Raises an InvalidZipEntryNameException when an entry name is
absolute or refers to a parent folder, before anything is
extracted.

Parameters:
pcFolderName CHARACTER
The name of the target folder
Top

LONGCHAR ExtractText (character)

Purpose: Extracts an entry as text
Notes : The content of the entry is expected to be UTF-8 encoded

Parameters:
pcEntryName CHARACTER
The name of the entry
Returns LONGCHAR
The text
Top

ExtractToFile (character, character)

Purpose: Extracts an entry into a file
Notes : Missing folders are created, an existing file is overwritten.
For a folder entry the folder is created.

Parameters:
pcEntryName CHARACTER
The name of the entry
pcFileName CHARACTER
The name of the target file
Top

ExtractToMemptr (character, memptr)

Purpose: Extracts an entry into a MEMPTR
Notes : The caller is responsible for freeing the MEMPTR. An empty
entry returns a MEMPTR with a size of 0.

Parameters:
pcEntryName CHARACTER
The name of the entry
pmData MEMPTR
OUTPUT The content of the entry
Top

FindEntry (character)

Purpose: Positions the ttEntry buffer on an entry
Notes : Raises a ZipEntryNotFoundException when the archive does not
contain the entry

Parameters:
pcEntryName CHARACTER
The name of the entry
Top

Consultingwerk.Framework.Compression.ICompressionAlgorithmFactory GetAlgorithmFactory ()

Purpose: Returns the service that creates the CRC-32 and Inflate
implementations
Notes : SCL-6385. Default CompressionAlgorithmFactory, which returns
the ABL Agent implementations on the ABL Agent

Returns Consultingwerk.Framework.Compression.ICompressionAlgorithmFactory
The ICompressionAlgorithmFactory service
Top

INT64 GetDataPosition ()

Purpose: Returns the 1-based position of the data of the entry in the
ttEntry buffer
Notes : Validates the local file header

Returns INT64
The position of the data
Top

Consultingwerk.Framework.Compression.ZipEntry GetEntries ()

Purpose: Returns the entries of the archive
Notes : In the order of the central directory. Returns an
indeterminate array for an archive without entries.

Returns Consultingwerk.Framework.Compression.ZipEntry
The entries
Top

Consultingwerk.Framework.Compression.ZipEntry GetEntry (character)

Purpose: Returns an entry of the archive
Notes : Raises a ZipEntryNotFoundException when the archive does not
contain the entry

Parameters:
pcEntryName CHARACTER
The name of the entry
Returns Consultingwerk.Framework.Compression.ZipEntry
The entry
Top

LOGICAL HasEntry (character)

Purpose: Returns if the archive contains an entry
Notes :

Parameters:
pcEntryName CHARACTER
The name of the entry
Returns LOGICAL
Logical value indicating if the archive contains the entry
Top

LoadArchive ()

Purpose: Reads the archive file into memory
Notes : SCL-6330. Only for a reader created from a file, and only once.
A file that was changed since the reader was created is
detected by the validation of the local file header.

Top

LocateEndOfCentralDirectory (memptr, int64, int64, integer, int64)

Purpose: Locates the end of central directory record of the archive
Notes : SCL-6330. The data is the whole archive or its end (the end of
central directory record is followed by an archive comment of
up to 65535 bytes).

Parameters:
pmData MEMPTR
The data that contains the end of the archive
piDataOffset INT64
The offset of the data in the archive (0 for the whole archive)
piEndOffset INT64
OUTPUT The offset of the end of central directory record in the archive
piCount INTEGER
OUTPUT The number of entries
piCentralOffset INT64
OUTPUT The offset of the central directory in the archive
Top

Consultingwerk.Framework.Compression.ZipEntry NewZipEntry ()

Purpose: Returns a new ZipEntry instance for the entry in the ttEntry
buffer
Notes :

Returns Consultingwerk.Framework.Compression.ZipEntry
The ZipEntry instance
Top

ParseCentralDirectory (memptr, int64, int64, integer)

Purpose: Reads the file headers of the central directory into the
ttEntry temp-table
Notes : SCL-6330. The data is the whole archive or the part of the
archive from the start of the central directory up to the
end of central directory record.

Parameters:
pmData MEMPTR
The data that contains the central directory
piPosition INT64
The position of the first file header in the data
piLastPosition INT64
The position of the last byte in the data before the end of central directory record
piCount INTEGER
The number of entries
Top

ReadCentralDirectory ()

Purpose: Reads the central directory of the archive in memory into the
ttEntry temp-table
Notes :

Top

ReadCentralDirectoryFromFile ()

Purpose: Reads the central directory of the archive file into the
ttEntry temp-table
Notes : SCL-6330. Reads only the end of the file (the end of central
directory record and the archive comment) and the central
directory, not the whole archive



Constructor Detail
Top

ZipArchiveReader (character)

Purpose: Constructor for the ZipArchiveReader class
Notes : Reads the ZIP archive from a file. SCL-6330: Reads only the
central directory, the archive is read on the first extraction

Parameters:
pcFileName CHARACTER
The name of the ZIP archive file
Top

ZipArchiveReader (memptr)

Purpose: Constructor for the ZipArchiveReader class
Notes : Reads the ZIP archive from a MEMPTR. The reader works on a copy,
so the caller may free the MEMPTR afterwards.

Parameters:
pmArchive MEMPTR
The ZIP archive


Property Detail
Top

INTEGER EntryCount


Returns INTEGER


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       24.11.2026 09:59:28