Hi,
This patch updates TUnZipper so that files can be unzipped to a custom user stream.
To use a custom stream here is an example:
UnZip := TUnZipper.Create;
// both of the following have to be set or
// the builtin method will be used (TFileStream)
UnZip.UseCustomOutputStream := True;
UnZip.OnCustomOutput := @UnZipCustomOutput;....
procedure (Sender: TObject; var AStream:
TStream; AItem: TFullZipFileEntry; AClosing: Boolean);
begin
if AClosing = False then
begin
AStream := TMemoryStream.Create;
end
else
begin
DoSomethingCreativeWith(AStream);
AStream.Free;
end;
end;Also fixed a bug where if a date was not set on a zipfile entry a crash would occur.
Regards,
Andrew
