#include <ezgzip.h>
class CEZFileToGZip : public CBase |
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) |
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.
IMPORT_C TBool | DeflateL | ( | ) |
Compresses the current file in stages. The function needs to called again until the compression is finalised, in which case it will return EFalse - for example...
while ( compressor->DeflateL() ) { // No action required }
Returns: ETrue if the compression is not complete, and function must be called again EFalse if the compression is finalised
IMPORT_C CEZFileToGZip * | NewL | ( | RFs & | aRfs, |
const TDesC & | aGzFileName, | |||
RFile & | aInput, | |||
TInt | aBufferSize = 0x8000 | |||
) | [static] |
Creates a new CEZFileToGZip object and leaves it on the CleanupStack
Parameter | Description |
---|---|
aRfs | open file server session |
aGzFileName | the name of the target zip file |
aInput | the file to compress |
aBufferSize | required size of buffers |
Returns: a pointer to the new CEZFileToGZip object, left on the CleanupStack
IMPORT_C CEZFileToGZip * | NewLC | ( | RFs & | aRfs, |
const TDesC & | aGzFileName, | |||
RFile & | aInput, | |||
TInt | aBufferSize = 0x8000 | |||
) | [static] |
Creates a new CEZFileToGZip object and leaves it on the CleanupStack
Parameter | Description |
---|---|
aRfs | open file server session |
aGzFileName | the name of the target zip file |
aInput | the file to compress |
aBufferSize | required size of buffers |
Returns: a pointer to the new CEZFileToGZip object, left on the CleanupStack
Quits the current compression operation and restarts with the specified arguments
Parameter | Description |
---|---|
aRfs | open file server session |
aGzFileName | the name of the target zip file |
aInput | the file to compress |
aBufferSize | required size of buffers |