EZGZipFile Class Reference
Detailed Description
The EZGZipFile class handles writing / reading of headers and trailers to / from zip files
Member Attribute Documentation
ID1
First of the header ID pair
ID2
Second of the header ID pair
Member Enumeration Documentation
Enum anonymous
Enumerator | Value | Description |
---|
ENotGZipFile | KEZlibErrNotGZipFile | |
EInvalidCompressionMethod | KEZlibErrInvalidCompression | |
EBadGZipHeader | KEZlibErrBadGZipHeader | |
EBadGZipTrailer | KEZlibErrBadGZipTrailer | |
EBadGZipCrc | KEZlibErrBadGZipCrc | |
Enum anonymous
Flags to determine which part of the header / trailer is being written
Enumerator | Value | Description |
---|
EFText | 0 | |
EFHcrc | 1 | |
EFExtra | 2 | |
EFName | 3 | |
EFComment | 4 | |
Member Function Documentation
IsGzipFile ( RFs &, const TDesC & )
IMPORT_C TBool | IsGzipFile | ( | RFs & | aRfs, |
| const TDesC & | aFname |
| ) | [static] |
IsGzipFileL ( RFs &, const TDesC & )
IMPORT_C TBool | IsGzipFileL | ( | RFs & | aRfs, |
| const TDesC & | aFname |
| ) | [static] |
Determine if the given file is a valid zip file
-
leave
- ... Any of the system wide error codes
Parameter | Description | aRfs | file server session |
aFname | name of the file to check |
Returns: ETrue if the file is valid zip file, EFalse otherwise
LocateAndReadTrailerL ( RFs &, const TDesC &, TEZGZipTrailer & )
Find the zip trailer within the specified file, and read it into the TEZGZipTrailer object
-
leave
- KEZlibErrBadGZipHeader Invalid zip header
-
leave
- ... Any of the system wide error codes
Parameter | Description | aRfs | file server session |
aFname | the file to read from |
aTrailer | the target trailer object |
ReadHeaderL ( RFile &, TEZGZipHeader & )
Read the zip header from the specified zip file into the TEZGZipHeader object
-
leave
- KEZlibErrBadGZipHeader invalid zip header
-
leave
- ... Any of the system wide error codes
Parameter | Description | aFile | the zip file to read from |
aHeader | the target header object |
ReadTrailerL ( RFile &, TEZGZipTrailer & )
Read the zip trailer from the specified zip file into the TEZGZipTrailer object
-
leave
- KEZlibErrBadGZipTrailer invalid zip trailer
-
leave
- ... Any of the system wide error codes
Parameter | Description | aFile | the zip file to read from |
aTrailer | the target trailer object |
WriteHeaderL ( RFile &, TEZGZipHeader & )
Write the zip header to the specified file
-
leave
- ... Any of the system wide error codes
Parameter | Description | aFile | the file to write to |
aHeader | the header object to write to the file |
WriteTrailerL ( RFile &, TEZGZipTrailer & )
Write the zip trailer to the specified file
-
leave
- ... Any of the system wide error codes
Parameter | Description | aFile | the file to write to |
aTrailer | the trailer object to write to the file |