Contents - Index - Previous - Next


OnGetNextStream event

 

Applies to

TVCLZip component

 

Declaration

property OnGetNextStream: TOnGetNextStreamEvent = procedure(Sender: TObject; var stream: TKPStream; var NextFileName: String); of object;

 

 

Description

 

This event allows you to pass in additional streams to be zipped when calling ZipFromStream. If this is not defined, then ZipFromStream will only zip one stream.  This event makes it much more efficient to zip multiple streams into one archive because it does it all in one process.  The alternative is to call ZipFromStream multiple times which results in modifying an existing archive for all but the first call to ZipFromStream.  This would mean that the zip file is recreated each time.