|
|
|
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
*/
|
|
|
|
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
*/
|
|
|
|
Consultingwerk.Framework.Compression.ZipEntry NewZipEntry ()
|
Returns a new ZipEntry instance for the entry in the ttEntry
buffer
Notes :
@return The ZipEntry instance
*/
|
|
|
|
ReadCentralDirectory ()
|
Reads the central directory of the archive into the ttEntry
temp-table
Notes :
*/
|