| class CEZFileToGZip : public CBase |
A CEZFileToGZip object allows compression of an uncompressed file to a zip file. The uncompressed source file is passed into the constructor along with the name of the target zip file. The file is compressed by calling the DeflateL() function.
| Public Member Functions | |
|---|---|
| ~CEZFileToGZip() | |
| IMPORT_C TBool | DeflateL() |
| IMPORT_C CEZFileToGZip * | NewL(RFs &, const TDesC &, RFile &, TInt) |
| IMPORT_C CEZFileToGZip * | NewLC(RFs &, const TDesC &, RFile &, TInt) |
| IMPORT_C void | ResetL(RFs &, const TDesC &, RFile &, TInt) |
| Private Member Functions | |
|---|---|
| CEZFileToGZip() | |
| void | ConstructL(RFs &, const TDesC &, RFile &, TInt) |
| void | InitialiseBufManL(RFs &, const TDesC &, RFile &, TInt) |
| Private Attributes | |
|---|---|
| CEZFileToGzipBM * | iBufferManager |
| CEZCompressor * | iCompressor |
| RFile | iGZipFile |
| TEZGZipHeader | iHeader |
| TInt | iUncompressedDataSize |
| void | ConstructL | ( | RFs & | aRfs, |
| const TDesC & | aGzFileName, | |||
| RFile & | aInput, | |||
| TInt | aBufferSize | |||
| ) | [private] | |||
| void | InitialiseBufManL | ( | RFs & | aRfs, |
| const TDesC & | aGzFileName, | |||
| RFile & | aInput, | |||
| TInt | aBufferSize | |||
| ) | [private] | |||
| IMPORT_C CEZFileToGZip * | NewL | ( | RFs & | aRfs, |
| const TDesC & | aGzFileName, | |||
| RFile & | aInput, | |||
| TInt | aBufferSize = 0x8000 | |||
| ) | [static] | |||
| IMPORT_C CEZFileToGZip * | NewLC | ( | RFs & | aRfs, |
| const TDesC & | aGzFileName, | |||
| RFile & | aInput, | |||
| TInt | aBufferSize = 0x8000 | |||
| ) | [static] | |||
| IMPORT_C void | ResetL | ( | RFs & | aRfs, |
| const TDesC & | aGzFileName, | |||
| RFile & | aInput, | |||
| TInt | aBufferSize = 0x8000 | |||
| ) | ||||