CEZFileToGZip Class Reference

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.

Inherits from

Constructor & Destructor Documentation

CEZFileToGZip()

CEZFileToGZip()[private]

~CEZFileToGZip()

~CEZFileToGZip()

Member Functions Documentation

ConstructL(RFs &, const TDesC &, RFile &, TInt)

voidConstructL(RFs &aRfs,
const TDesC &aGzFileName,
RFile &aInput,
TIntaBufferSize
)[private]

Parameters

RFs & aRfs
const TDesC & aGzFileName
RFile & aInput
TInt aBufferSize

DeflateL()

IMPORT_C TBoolDeflateL()

InitialiseBufManL(RFs &, const TDesC &, RFile &, TInt)

voidInitialiseBufManL(RFs &aRfs,
const TDesC &aGzFileName,
RFile &aInput,
TIntaBufferSize
)[private]

Parameters

RFs & aRfs
const TDesC & aGzFileName
RFile & aInput
TInt aBufferSize

NewL(RFs &, const TDesC &, RFile &, TInt)

IMPORT_C CEZFileToGZip *NewL(RFs &aRfs,
const TDesC &aGzFileName,
RFile &aInput,
TIntaBufferSize = 0x8000
)[static]

Parameters

RFs & aRfs
const TDesC & aGzFileName
RFile & aInput
TInt aBufferSize = 0x8000

NewLC(RFs &, const TDesC &, RFile &, TInt)

IMPORT_C CEZFileToGZip *NewLC(RFs &aRfs,
const TDesC &aGzFileName,
RFile &aInput,
TIntaBufferSize = 0x8000
)[static]

Parameters

RFs & aRfs
const TDesC & aGzFileName
RFile & aInput
TInt aBufferSize = 0x8000

ResetL(RFs &, const TDesC &, RFile &, TInt)

IMPORT_C voidResetL(RFs &aRfs,
const TDesC &aGzFileName,
RFile &aInput,
TIntaBufferSize = 0x8000
)

Parameters

RFs & aRfs
const TDesC & aGzFileName
RFile & aInput
TInt aBufferSize = 0x8000

Member Data Documentation

CEZFileToGzipBM * iBufferManager

CEZFileToGzipBM *iBufferManager[private]

CEZCompressor * iCompressor

CEZCompressor *iCompressor[private]

RFile iGZipFile

RFile iGZipFile[private]

TEZGZipHeader iHeader

TEZGZipHeader iHeader[private]

TInt iUncompressedDataSize

TInt iUncompressedDataSize[private]