Top Method Summary
Options Name Purpose
AddDirectory (character) Adds a folder entry to the archive Notes : A trailing slash is added to the name when missing. Folders are created implicitly by the entries they contain, so folder entries are only required for empty folders. @param pcEntryName The name of the folder, e.g. data/images */
AddEntry (character, memptr) Adds an entry with the content of a MEMPTR to the archive Notes : The last modification date of the entry is the current date and time @param pcEntryName The name of the entry, e.g. data/customers.json @param pmData The content of the entry */
AddEntry (character, memptr, datetime) Adds an entry with the content of a MEMPTR to the archive Notes : An empty or unallocated MEMPTR creates an empty entry @param pcEntryName The name of the entry, e.g. data/customers.json @param pmData The content of the entry @param pdtLastModified The last modification date and time of the entry */
AddFile (character, character) Adds an entry with the content of a file to the archive Notes : The last modification date of the entry is the one of the file @param pcEntryName The name of the entry, e.g. data/customers.json @param pcFileName The name of the file */
AddText (character, longchar) Adds an entry with a text to the archive Notes : The text is stored UTF-8 encoded (without byte order mark) @param pcEntryName The name of the entry, e.g. data/customers.json @param plcText The text */
CreateEntry (character, logical, datetime) Creates the entry record (positioned in the ttEntry buffer) Notes : @param pcEntryName The normalized entry name @param plDirectory Logical value indicating if the entry is a folder @param pdtLastModified The last modification date and time of the entry */
WriteToFile (character) Writes the ZIP archive to a file Notes : An existing file is overwritten @param pcFileName The name of the file */
WriteToMemptr (memptr) Writes the ZIP archive into a MEMPTR Notes : The caller is responsible for freeing the MEMPTR @param pmArchive OUTPUT The ZIP archive */

Top Constructor Summary
Options Name Purpose
ZipArchiveWriter () Constructor for the ZipArchiveWriter class Notes : */

Top Property Summary
Options Name Purpose
Consultingwerk.Framework.Compression.ZipCompressionMethodEnum CompressionMethod
INTEGER EntryCount


Method Detail
Top

AddDirectory (character)

Purpose: Adds a folder entry to the archive
Notes : A trailing slash is added to the name when missing. Folders
are created implicitly by the entries they contain, so folder
entries are only required for empty folders.

Parameters:
pcEntryName CHARACTER
The name of the folder, e.g. data/images
Top

AddEntry (character, memptr)

Purpose: Adds an entry with the content of a MEMPTR to the archive
Notes : The last modification date of the entry is the current date
and time

Parameters:
pcEntryName CHARACTER
The name of the entry, e.g. data/customers.json
pmData MEMPTR
The content of the entry
Top

AddEntry (character, memptr, datetime)

Purpose: Adds an entry with the content of a MEMPTR to the archive
Notes : An empty or unallocated MEMPTR creates an empty entry

Parameters:
pcEntryName CHARACTER
The name of the entry, e.g. data/customers.json
pmData MEMPTR
The content of the entry
pdtLastModified DATETIME
The last modification date and time of the entry
Top

AddFile (character, character)

Purpose: Adds an entry with the content of a file to the archive
Notes : The last modification date of the entry is the one of the file

Parameters:
pcEntryName CHARACTER
The name of the entry, e.g. data/customers.json
pcFileName CHARACTER
The name of the file
Top

AddText (character, longchar)

Purpose: Adds an entry with a text to the archive
Notes : The text is stored UTF-8 encoded (without byte order mark)

Parameters:
pcEntryName CHARACTER
The name of the entry, e.g. data/customers.json
plcText LONGCHAR
The text
Top

CreateEntry (character, logical, datetime)

Purpose: Creates the entry record (positioned in the ttEntry buffer)
Notes :

Parameters:
pcEntryName CHARACTER
The normalized entry name
plDirectory LOGICAL
Logical value indicating if the entry is a folder
pdtLastModified DATETIME
The last modification date and time of the entry
Top

WriteToFile (character)

Purpose: Writes the ZIP archive to a file
Notes : An existing file is overwritten

Parameters:
pcFileName CHARACTER
The name of the file
Top

WriteToMemptr (memptr)

Purpose: Writes the ZIP archive into a MEMPTR
Notes : The caller is responsible for freeing the MEMPTR

Parameters:
pmArchive MEMPTR
OUTPUT The ZIP archive


Constructor Detail
Top

ZipArchiveWriter ()

Purpose: Constructor for the ZipArchiveWriter class
Notes :



Property Detail
Top

Consultingwerk.Framework.Compression.ZipCompressionMethodEnum CompressionMethod


Returns Consultingwerk.Framework.Compression.ZipCompressionMethodEnum
Top

INTEGER EntryCount


Returns INTEGER


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.11.2026 08:04:38