Class TMultiFileContainer

Unit

Declaration

type TMultiFileContainer = class(TPersistent)

Description

Generic definition of a multifile container

Hierarchy

Overview

Methods

Public constructor Create(AStream: TStream); overload;
Public constructor Create(AStream: TStream; AStartPos: Int64); overload;
Public constructor Create(AFilename: utf8string); overload;
Public constructor Create; overload;
Public destructor Destroy; override;
Public function Add(AFilename: TEntryFilename; AContent: TStream; AOverwrite: boolean = false; AOwnStream: boolean = true): integer; overload;
Public function Add(AFilename: TEntryFilename; AContent: RawByteString; AOverwrite: boolean = false): integer; overload;
Public function Add(AName: utf8string; AExtension: utf8string; AContent: TStream; AOverwrite: boolean = false; AOwnStream: boolean = true): integer; overload;
Public function Add(AName: utf8string; AExtension: utf8string; AContent: RawByteString; AOverwrite: boolean = false): integer; overload;
Public function Delete(AName: utf8string; AExtension: utf8string; ACaseSensitive: boolean = True): boolean; overload;
Public function Delete(AFilename: TEntryFilename; ACaseSensitive: boolean = True): boolean; overload;
Public function IndexOf(AEntry: TMultiFileEntry): integer; overload;
Public function IndexOf(AFilename: TEntryFilename; ACaseSensitive: boolean = True): integer; overload;
Public function IndexOf(AName: utf8string; AExtenstion: utf8string; ACaseSensitive: boolean = True): integer; overload; virtual;
Protected function AddEntry(AEntry: TMultiFileEntry; AIndex: integer = -1): integer;
Protected function CreateEntry(AName: utf8string; AExtension: utf8string; AContent: TStream): TMultiFileEntry; virtual; abstract;
Protected function GetCount: integer;
Protected function GetEntry(AIndex: integer): TMultiFileEntry;
Protected function GetRawString(AIndex: integer): RawByteString;
Protected function GetRawStringByFilename(AFilename: string): RawByteString;
Public procedure Assign(Source: TPersistent); override;
Public procedure Clear; virtual;
Public procedure Delete(AIndex: integer); overload; virtual;
Public procedure LoadFromFile(AFilename: utf8string);
Public procedure LoadFromResource(AFilename: string); virtual;
Public procedure LoadFromStream(AStream: TStream); virtual; abstract;
Public procedure Remove(AEntry: TMultiFileEntry); virtual;
Public procedure SaveToFile(AFilename: utf8string);
Public procedure SaveToStream(ADestination: TStream); virtual; abstract;
Protected procedure Init; virtual;
Protected procedure SetRawString(AIndex: integer; AValue: RawByteString);
Protected procedure SetRawStringByFilename(AFilename: string; AValue: RawByteString);

Properties

Public property Count: integer read GetCount;
Public property Entry[AIndex: integer]: TMultiFileEntry read GetEntry;
Public property RawString[AIndex: integer]: RawByteString read GetRawString write SetRawString;
Public property RawStringByFilename[AFilename: string]: RawByteString read GetRawStringByFilename write SetRawStringByFilename;

Description

Methods

Public constructor Create(AStream: TStream); overload;

This item has no description.

Public constructor Create(AStream: TStream; AStartPos: Int64); overload;

This item has no description.

Public constructor Create(AFilename: utf8string); overload;

This item has no description.

Public constructor Create; overload;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public function Add(AFilename: TEntryFilename; AContent: TStream; AOverwrite: boolean = false; AOwnStream: boolean = true): integer; overload;

This item has no description.

Public function Add(AFilename: TEntryFilename; AContent: RawByteString; AOverwrite: boolean = false): integer; overload;

This item has no description.

Public function Add(AName: utf8string; AExtension: utf8string; AContent: TStream; AOverwrite: boolean = false; AOwnStream: boolean = true): integer; overload;

This item has no description.

Public function Add(AName: utf8string; AExtension: utf8string; AContent: RawByteString; AOverwrite: boolean = false): integer; overload;

This item has no description.

Public function Delete(AName: utf8string; AExtension: utf8string; ACaseSensitive: boolean = True): boolean; overload;

This item has no description.

Public function Delete(AFilename: TEntryFilename; ACaseSensitive: boolean = True): boolean; overload;

This item has no description.

Public function IndexOf(AEntry: TMultiFileEntry): integer; overload;

This item has no description.

Public function IndexOf(AFilename: TEntryFilename; ACaseSensitive: boolean = True): integer; overload;

This item has no description.

Public function IndexOf(AName: utf8string; AExtenstion: utf8string; ACaseSensitive: boolean = True): integer; overload; virtual;

This item has no description.

Protected function AddEntry(AEntry: TMultiFileEntry; AIndex: integer = -1): integer;

This item has no description.

Protected function CreateEntry(AName: utf8string; AExtension: utf8string; AContent: TStream): TMultiFileEntry; virtual; abstract;

This item has no description.

Protected function GetCount: integer;

This item has no description.

Protected function GetEntry(AIndex: integer): TMultiFileEntry;

This item has no description.

Protected function GetRawString(AIndex: integer): RawByteString;

This item has no description.

Protected function GetRawStringByFilename(AFilename: string): RawByteString;

This item has no description.

Public procedure Assign(Source: TPersistent); override;

This item has no description.

Public procedure Clear; virtual;

This item has no description.

Public procedure Delete(AIndex: integer); overload; virtual;

This item has no description.

Public procedure LoadFromFile(AFilename: utf8string);

This item has no description.

Public procedure LoadFromResource(AFilename: string); virtual;

This item has no description.

Public procedure LoadFromStream(AStream: TStream); virtual; abstract;

This item has no description.

Public procedure Remove(AEntry: TMultiFileEntry); virtual;

This item has no description.

Public procedure SaveToFile(AFilename: utf8string);

This item has no description.

Public procedure SaveToStream(ADestination: TStream); virtual; abstract;

This item has no description.

Protected procedure Init; virtual;

This item has no description.

Protected procedure SetRawString(AIndex: integer; AValue: RawByteString);

This item has no description.

Protected procedure SetRawStringByFilename(AFilename: string; AValue: RawByteString);

This item has no description.

Properties

Public property Count: integer read GetCount;

This item has no description.

Public property Entry[AIndex: integer]: TMultiFileEntry read GetEntry;

This item has no description.

Public property RawString[AIndex: integer]: RawByteString read GetRawString write SetRawString;

This item has no description.

Public property RawStringByFilename[AFilename: string]: RawByteString read GetRawStringByFilename write SetRawStringByFilename;

This item has no description.