#include <EZGzip.h>
Link against:
ezlib.lib
class CEZFileToGZip : public CBase;
Description
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 CEZFileToGZip::DeflateL()
function.
Derivation
CBase
-
Base class for all classes to be instantiated on the heap.
CEZFileToGZip
- A CEZFileToGZip object allows compression of an uncompressed file to a zip file....
Members
Defined in CEZFileToGZip
:
Inherited from CBase
:
Related Topics
»
Symbian OS v9.4 »
Examples »
System Library example code »
EzlibExample: Using EZLIB API to compress and decompress files
Construction and destruction
NewLC(RFs &,const TDesC &,RFile &,TInt)
IMPORT_C static CEZFileToGZip* NewLC(RFs &aRfs, const TDesC &aGzFileName, RFile &aInput, TInt aBufferSize=0x8000);
Description
Creates a new CEZFileToGZip object and leaves it on the CleanupStack
Parameters
RFs &aRfs |
open file server session
|
const TDesC16 &aGzFileName |
the name of the target zip file
|
RFile &aInput |
the file to compress
|
TInt aBufferSize |
required size of buffers
|
|
Return value
NewL(RFs &,const TDesC &,RFile &,TInt)
IMPORT_C static CEZFileToGZip* NewL(RFs &aRfs, const TDesC &aGzFileName, RFile &aInput, TInt aBufferSize=0x8000);
Description
Creates a new CEZFileToGZip object and leaves it on the CleanupStack
Parameters
RFs &aRfs |
open file server session
|
const TDesC16 &aGzFileName |
the name of the target zip file
|
RFile &aInput |
the file to compress
|
TInt aBufferSize |
required size of buffers
|
|
Return value
ResetL(RFs &,const TDesC &,RFile &,TInt)
IMPORT_C void ResetL(RFs &aRfs, const TDesC &aGzFileName, RFile &aInput, TInt aBufferSize=0x8000);
Description
Quits the current compression operation and restarts with the specified arguments
Parameters
RFs &aRfs |
open file server session
|
const TDesC16 &aGzFileName |
the name of the target zip file
|
RFile &aInput |
the file to compress
|
TInt aBufferSize |
required size of buffers
|
|
Leave codes
... |
Any of the system wide error codes
|
|
IMPORT_C TBool DeflateL();
Description
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
}
Return value
TBool
|
ETrue if the compression is not complete, and function must be called again EFalse if the compression is finalised
|
|
Leave codes
... |
Any of the system wide error codes
|
|