class CZipFile : public CZipArchive |
A CZipFile represents a ZIP archive contained in a single file. Multi file zip archives are not supported.
Public Member Functions | |
---|---|
CZipFile(RFs &, const TDesC &) | |
~CZipFile() | |
IMPORT_C CZipFileMember * | CaseInsensitiveMemberL(const TDesC &) |
IMPORT_C CZipFileMember * | CaseSensitiveOrCaseInsensitiveMemberL(const TDesC &) |
IMPORT_C void | Close(void) |
IMPORT_C TInt | GetInputStreamL(const CZipFileMember *, RZipFileMemberReaderStream *&) |
IMPORT_C CZipFileMemberIterator * | GetMembersL(void) |
IMPORT_C CZipFileMember * | MemberL(const TDesC &) |
IMPORT_C CZipFile * | NewL(RFs &, RFile &) |
IMPORT_C CZipFile * | NewL(RFs &, const TDesC &) |
IMPORT_C TInt | OpenL(void) |
IMPORT_C TInt | Size(TInt &) |
Protected Member Functions | |
---|---|
IMPORT_C void | ConstructL(const TDesC &) |
IMPORT_C void | ConstructL(RFile &) |
void | DeleteMemberPointers(void) |
TInt | FindCentralDirectoryTrailer(TUint32 &) |
const TMemberPointer * | FindMemberPointer(const TDesC &, TBool) |
TInt | LoadMemberPointersL(void) |
RZipFileMemberReaderStream * | MakeInputStreamL(TUint32, TUint32, TUint32, TUint32) |
CZipFileMember * | MakeMemberL(TInt) |
CZipFileMember * | MakeMemberL(const TMemberPointer &, const TLocalHeader &) |
void | OpenFileL(const TDesC &) |
TInt | Read(TByte *, TUint32) |
TInt | Read(TUint16 &) |
TInt | Read(TUint32 &) |
TInt | ReadCentralDirectoryHeaderL(TCentralDirectoryHeader &, TMemberPointer &, CCnvCharacterSetConverter *, TInt) |
TInt | ReadCentralDirectoryTrailer(TUint32, TCentralDirectoryTrailer &) |
TInt | ReadLocalHeader(TUint32, TLocalHeader &) |
TInt | Seek(TInt) |
Public Member Enumerations | |
---|---|
enum | anonymous { KZipFileError = KZipArchiveMinError - 1, KZipFileNotFound = KZipFileError - 1, KZipFileIOError = KZipFileError - 2 } |
Inherited Enumerations | |
---|---|
CZipArchive:@53 | |
CZipArchive:@54 | |
CZipArchive:@55 | |
CZipArchive:@56 | |
CZipArchive:TCompressionMethod |
Private Attributes | |
---|---|
ContentAccess::CData * | iData |
TUint32 | iFileLength |
const TDesC & | iFileName |
RFs & | iFs |
TMemberPointer * | iMemberPointers |
TCentralDirectoryTrailer | iTrailer |
IMPORT_C CZipFileMember * | CaseInsensitiveMemberL | ( | const TDesC & | aName | ) |
const TDesC & aName |
IMPORT_C CZipFileMember * | CaseSensitiveOrCaseInsensitiveMemberL | ( | const TDesC & | aName | ) |
const TDesC & aName |
IMPORT_C void | ConstructL | ( | const TDesC & | aFileName | ) | [protected] |
const TDesC & aFileName |
TInt | FindCentralDirectoryTrailer | ( | TUint32 & | offset | ) | [protected] |
TUint32 & offset |
const TMemberPointer * | FindMemberPointer | ( | const TDesC & | , |
TBool | ||||
) | [protected] |
IMPORT_C TInt | GetInputStreamL | ( | const CZipFileMember * | aMember, |
RZipFileMemberReaderStream *& | aStream | |||
) |
const CZipFileMember * aMember | |
RZipFileMemberReaderStream *& aStream |
RZipFileMemberReaderStream * | MakeInputStreamL | ( | TUint32 | , |
TUint32 | , | |||
TUint32 | , | |||
TUint32 | ||||
) | [protected] |
CZipFileMember * | MakeMemberL | ( | const TMemberPointer & | , |
const TLocalHeader & | ||||
) | [protected] |
const TMemberPointer & | |
const TLocalHeader & |
IMPORT_C CZipFileMember * | MemberL | ( | const TDesC & | aName | ) |
const TDesC & aName |
void | OpenFileL | ( | const TDesC & | aFileName | ) | [protected] |
const TDesC & aFileName |
TInt | ReadCentralDirectoryHeaderL | ( | TCentralDirectoryHeader & | , |
TMemberPointer & | , | |||
CCnvCharacterSetConverter * | aConverter, | |||
TInt | aConverterState | |||
) | [protected] |
TCentralDirectoryHeader & | |
TMemberPointer & | |
CCnvCharacterSetConverter * aConverter | |
TInt aConverterState |
TInt | ReadCentralDirectoryTrailer | ( | TUint32 | offset, |
TCentralDirectoryTrailer & | ||||
) | [protected] |
TUint32 offset | |
TCentralDirectoryTrailer & |
TInt | ReadLocalHeader | ( | TUint32 | , |
TLocalHeader & | ||||
) | [protected] |
TUint32 | |
TLocalHeader & |
ZipFile error enumeration.
KZipFileError = KZipArchiveMinError - 1 |
Cannot read file directory in the archive file |
KZipFileNotFound = KZipFileError - 1 |
File not found error. It is not used in current implemenation |
KZipFileIOError = KZipFileError - 2 |
File IO error.Any error occurs during a archive file is readed. For examples, any error about reading number of disk, an offset of signature, or the content of file is non-readable. |
ContentAccess::CData * | iData | [private] |
The pointer to CData object created from a zip file
TMemberPointer * | iMemberPointers | [private] |
The pointer to a a compressed file in a zipfile
TCentralDirectoryTrailer | iTrailer | [private] |
The central directory of ZIP File Trailer