[Overview][Constants][Types][Classes][Procedures and functions] Reference for unit 'zlibar' (#archive)

TZLibReadArchive

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Object to read and extract files made with TZLibWriteArchive

Declaration

Source position: zlibar.pas line 133

type TZLibReadArchive = class(TObject)

  fTOCList: TList;

  

  fOnError: TZlibErrorProc;

  

  fOnExtract: TZlibExtractProgProc;

  

public

  procedure Create();

  

Creates an instance of the object

  destructor Destroy; override;

  

  procedure ExtractFileToStream();

  

Extract the file at Index to a user provided stream

  property Header: TZlibArchiveHeader; [r]

  

Retrieves the header of the file

  property FilesInArchive: TTOCEntry; [r]

  

Contains information about the file in the archive

  property Count: Integer; [r]

  

Number of files in the archive

  property OnError: TZlibErrorProc; [rw]

  

Callback to intercept errors before they trigger an Exception

  property OnExtract: TZlibExtractProgProc; [rw]

  

Callback used to monitor the progress of a file as it is being extracted

published

  property InStream: TStream; [rw]

  

TStream that is currently loaded

end;

Inheritance

TZLibReadArchive

  

Object to read and extract files made with TZLibWriteArchive

|

TObject

Description

A TZlibReadArchive object is not capable of writing or changing an archive. You must use a TZLibWriteArchive object to do that.

See also

TZlibWriteArchive

  

Object used to create ZibArchive files.