»
Symbian OS v9.3 »
Symbian OS reference »
C++ component reference »
System Libraries EZLIB »
EZGZipFile
Location:
EZGzip.h
Link against: ezlib.lib
class EZGZipFile;
Description
The EZGZipFile class handles writing / reading of headers and trailers to / from zip files
Members
Defined in EZGZipFile
:
EBadGZipCrc
, EBadGZipHeader
, EBadGZipTrailer
, EFComment
, EFExtra
, EFHcrc
, EFName
, EFText
, EInvalidCompressionMethod
, ENotGZipFile
, ID1
, ID2
, IsGzipFile()
, IsGzipFileL()
, LocateAndReadTrailerL()
, ReadHeaderL()
, ReadTrailerL()
, WriteHeaderL()
, WriteTrailerL()
, anonymous
, anonymous
Member functions
static IMPORT_C void ReadHeaderL(RFile &aFile, TEZGZipHeader &aHeader);
Description
Read the zip header from the specified zip file into the TEZGZipHeader
object
Parameters
Leave codes
KEZlibErrBadGZipHeader |
invalid zip header
|
... |
Any of the system wide error codes
|
|
static IMPORT_C void WriteHeaderL(RFile &aFile, TEZGZipHeader &aHeader);
Description
Write the zip header to the specified file
Parameters
RFile &aFile |
the file to write to
|
TEZGZipHeader &aHeader |
the header object to write to the file
|
|
Leave codes
... |
Any of the system wide error codes
|
|
static IMPORT_C void ReadTrailerL(RFile &aFile, TEZGZipTrailer &aTrailer);
Description
Read the zip trailer from the specified zip file into the TEZGZipTrailer
object
Parameters
Leave codes
KEZlibErrBadGZipTrailer |
invalid zip trailer
|
... |
Any of the system wide error codes
|
|
static IMPORT_C void WriteTrailerL(RFile &aFile, TEZGZipTrailer &aTrailer);
Description
Write the zip trailer to the specified file
Parameters
RFile &aFile |
the file to write to
|
TEZGZipTrailer &aTrailer |
the trailer object to write to the file
|
|
Leave codes
... |
Any of the system wide error codes
|
|
static IMPORT_C void LocateAndReadTrailerL(RFs &aRfs, const TDesC &aFname, TEZGZipTrailer &aTrailer);
Description
Find the zip trailer within the specified file, and read it into the TEZGZipTrailer
object
Parameters
RFs &aRfs |
file server session
|
const TDesC &aFname |
the file to read from
|
TEZGZipTrailer &aTrailer |
the target trailer object
|
|
Leave codes
KEZlibErrBadGZipHeader |
Invalid zip header
|
... |
Any of the system wide error codes
|
|
static IMPORT_C TBool IsGzipFile(RFs &aRfs, const TDesC &aFname);
Description
Parameters
Return value
static IMPORT_C TBool IsGzipFileL(RFs &aRfs, const TDesC &aFname);
Description
Determine if the given file is a valid zip file
Parameters
RFs &aRfs |
file server session
|
const TDesC &aFname |
name of the file to check
|
|
Return value
TBool
|
ETrue if the file is valid zip file, EFalse otherwise
|
|
Leave codes
... |
Any of the system wide error codes
|
|
n/a
Description
Zip file error codes
n/a
Description
Flags to determine which part of the header / trailer is being written
const TUint8 ID1;
Description
First of the header ID pair
const TUint8 ID2;
Description
Second of the header ID pair