Class TMultiFileContainer
Unit
Declaration
type TMultiFileContainer = class(TPersistent)
Description
Generic definition of a multifile container
Hierarchy
- TMultiFileContainer
Overview
Methods
constructor Create(AStream: TStream); overload; |
|
constructor Create(AStream: TStream; AStartPos: Int64); overload; |
|
constructor Create(AFilename: utf8string); overload; |
|
constructor Create; overload; |
|
destructor Destroy; override; |
|
function Add(AFilename: TEntryFilename; AContent: TStream; AOverwrite: boolean = false; AOwnStream: boolean = true): integer; overload; |
|
function Add(AFilename: TEntryFilename; AContent: RawByteString; AOverwrite: boolean = false): integer; overload; |
|
function Add(AName: utf8string; AExtension: utf8string; AContent: TStream; AOverwrite: boolean = false; AOwnStream: boolean = true): integer; overload; |
|
function Add(AName: utf8string; AExtension: utf8string; AContent: RawByteString; AOverwrite: boolean = false): integer; overload; |
|
function Delete(AName: utf8string; AExtension: utf8string; ACaseSensitive: boolean = True): boolean; overload; |
|
function Delete(AFilename: TEntryFilename; ACaseSensitive: boolean = True): boolean; overload; |
|
function IndexOf(AEntry: TMultiFileEntry): integer; overload; |
|
function IndexOf(AFilename: TEntryFilename; ACaseSensitive: boolean = True): integer; overload; |
|
function IndexOf(AName: utf8string; AExtenstion: utf8string; ACaseSensitive: boolean = True): integer; overload; virtual; |
|
function AddEntry(AEntry: TMultiFileEntry; AIndex: integer = -1): integer; |
|
function CreateEntry(AName: utf8string; AExtension: utf8string; AContent: TStream): TMultiFileEntry; virtual; abstract; |
|
function GetCount: integer; |
|
function GetEntry(AIndex: integer): TMultiFileEntry; |
|
function GetRawString(AIndex: integer): RawByteString; |
|
function GetRawStringByFilename(AFilename: string): RawByteString; |
|
procedure Assign(Source: TPersistent); override; |
|
procedure Clear; virtual; |
|
procedure Delete(AIndex: integer); overload; virtual; |
|
procedure LoadFromFile(AFilename: utf8string); |
|
procedure LoadFromResource(AFilename: string); virtual; |
|
procedure LoadFromStream(AStream: TStream); virtual; abstract; |
|
procedure Remove(AEntry: TMultiFileEntry); virtual; |
|
procedure SaveToFile(AFilename: utf8string); |
|
procedure SaveToStream(ADestination: TStream); virtual; abstract; |
|
procedure Init; virtual; |
|
procedure SetRawString(AIndex: integer; AValue: RawByteString); |
|
procedure SetRawStringByFilename(AFilename: string; AValue: RawByteString); |
Properties
property Count: integer read GetCount; |
|
property Entry[AIndex: integer]: TMultiFileEntry read GetEntry; |
|
property RawString[AIndex: integer]: RawByteString read GetRawString write SetRawString; |
|
property RawStringByFilename[AFilename: string]: RawByteString read GetRawStringByFilename write SetRawStringByFilename; |
Description
Methods
constructor Create(AStream: TStream); overload; |
|
This item has no description. |
constructor Create(AStream: TStream; AStartPos: Int64); overload; |
|
This item has no description. |
constructor Create(AFilename: utf8string); overload; |
|
This item has no description. |
constructor Create; overload; |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |
function Add(AFilename: TEntryFilename; AContent: TStream; AOverwrite: boolean = false; AOwnStream: boolean = true): integer; overload; |
|
This item has no description. |
function Add(AFilename: TEntryFilename; AContent: RawByteString; AOverwrite: boolean = false): integer; overload; |
|
This item has no description. |
function Add(AName: utf8string; AExtension: utf8string; AContent: TStream; AOverwrite: boolean = false; AOwnStream: boolean = true): integer; overload; |
|
This item has no description. |
function Add(AName: utf8string; AExtension: utf8string; AContent: RawByteString; AOverwrite: boolean = false): integer; overload; |
|
This item has no description. |
function Delete(AName: utf8string; AExtension: utf8string; ACaseSensitive: boolean = True): boolean; overload; |
|
This item has no description. |
function Delete(AFilename: TEntryFilename; ACaseSensitive: boolean = True): boolean; overload; |
|
This item has no description. |
function IndexOf(AEntry: TMultiFileEntry): integer; overload; |
|
This item has no description. |
function IndexOf(AFilename: TEntryFilename; ACaseSensitive: boolean = True): integer; overload; |
|
This item has no description. |
function IndexOf(AName: utf8string; AExtenstion: utf8string; ACaseSensitive: boolean = True): integer; overload; virtual; |
|
This item has no description. |
function AddEntry(AEntry: TMultiFileEntry; AIndex: integer = -1): integer; |
|
This item has no description. |
function CreateEntry(AName: utf8string; AExtension: utf8string; AContent: TStream): TMultiFileEntry; virtual; abstract; |
|
This item has no description. |
function GetCount: integer; |
|
This item has no description. |
function GetEntry(AIndex: integer): TMultiFileEntry; |
|
This item has no description. |
function GetRawString(AIndex: integer): RawByteString; |
|
This item has no description. |
function GetRawStringByFilename(AFilename: string): RawByteString; |
|
This item has no description. |
procedure Assign(Source: TPersistent); override; |
|
This item has no description. |
procedure Clear; virtual; |
|
This item has no description. |
procedure Delete(AIndex: integer); overload; virtual; |
|
This item has no description. |
procedure LoadFromFile(AFilename: utf8string); |
|
This item has no description. |
procedure LoadFromResource(AFilename: string); virtual; |
|
This item has no description. |
procedure LoadFromStream(AStream: TStream); virtual; abstract; |
|
This item has no description. |
procedure Remove(AEntry: TMultiFileEntry); virtual; |
|
This item has no description. |
procedure SaveToFile(AFilename: utf8string); |
|
This item has no description. |
procedure SaveToStream(ADestination: TStream); virtual; abstract; |
|
This item has no description. |
procedure Init; virtual; |
|
This item has no description. |
procedure SetRawString(AIndex: integer; AValue: RawByteString); |
|
This item has no description. |
procedure SetRawStringByFilename(AFilename: string; AValue: RawByteString); |
|
This item has no description. |
Properties
property Count: integer read GetCount; |
|
This item has no description. |
property Entry[AIndex: integer]: TMultiFileEntry read GetEntry; |
|
This item has no description. |
property RawString[AIndex: integer]: RawByteString read GetRawString write SetRawString; |
|
This item has no description. |
property RawStringByFilename[AFilename: string]: RawByteString read GetRawStringByFilename write SetRawStringByFilename; |
|
This item has no description. |