Class TUnzipperStreamUtf8
Unit
Declaration
type TUnzipperStreamUtf8 = class(TUnZipper)
Description
Unzipping class with custom input stream that can extract a specific file
Hierarchy
- TUnZipper
- TUnzipperStreamUtf8
Overview
Methods
constructor Create; |
|
function UnzipFileToStream(AFilename: string; AStream: TStream; ACaseSensitive: boolean= true): boolean; |
|
function UnzipFileToString(AFilename:string): string; |
|
procedure CustomCloseInput(Sender: TObject; var AStream: TStream); |
|
procedure CustomCloseOutput(Sender : TObject; var AStream : TStream; AItem : TFullZipFileEntry); |
|
procedure CustomCreateOutput(Sender : TObject; var AStream : TStream; AItem : TFullZipFileEntry); |
|
Procedure CustomOpenInput(Sender: TObject; var AStream: TStream); |
Properties
property InputStream: TStream read FCustomInputStream write SetInputStream; |
Description
Methods
constructor Create; |
|
Creates the unzipper class. You need to set the InputStream ou Filename property afer that. |
function UnzipFileToStream(AFilename: string; AStream: TStream; ACaseSensitive: boolean= true): boolean; |
|
Unzips the specified item with the given filename into the given stream |
function UnzipFileToString(AFilename:string): string; |
|
Unzips the specified item with the given filename and return it as a string |
procedure CustomCloseInput(Sender: TObject; var AStream: TStream); |
|
Callback method to close the ZIP input |
procedure CustomCloseOutput(Sender : TObject; var AStream : TStream; AItem : TFullZipFileEntry); |
|
Callback method to close the output for the content of the extracted item |
procedure CustomCreateOutput(Sender : TObject; var AStream : TStream; AItem : TFullZipFileEntry); |
|
Callback method to create the output for the content of the extracted item. This function actually just supplies the chosen output stream. |
Procedure CustomOpenInput(Sender: TObject; var AStream: TStream); |
|
Callback method to open the ZIP input |
Properties
property InputStream: TStream read FCustomInputStream write SetInputStream; |
|
Input stream to use when unzipping, otherwise will use the inherited Filename property |