|
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
*/
|