Sign in Join
FPDoc Onlineexperiment

TTarArchive.Create constructor

Member of TTarArchivepublicIn unit LibTar

Create a new instance of the archive.

Declaration

pascal
constructor Create(Stream: TStream); overload
constructor Create(const Filename: AnsiString; 
 FileMode: Word=fmOpenRead or fmShareDenyWrite)
 ; overload

Arguments

Stream

Stream to read archive from.

Filename

Filename to open and read archive from.

FileMode

Filemode to open file with.

Description

Create can be used to create a new instance of TTarArchive using either a Stream TStream descendent or using a name of a file to open: FileName. In case of the filename, an open mode can be specified.

Errors

In case a filename is specified and the file cannot be opened, an exception will occur.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.