#include <EZGzip.h>
Link against:
ezlib.lib
class CEZGZipToFile : public CBase;
Description
A CEZGZipToFile object allows de-compression of a compressed file. The name of the compressed file is passed into the constructor
along with a target file to contain the uncompressed data. The file is uncompressed by calling the CEZGZipToFile::InflateL()
function.
Derivation
CBase
-
Base class for all classes to be instantiated on the heap.
CEZGZipToFile
- A CEZGZipToFile object allows de-compression of a compressed file. The name of t...
Members
Defined in CEZGZipToFile
:
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 CEZGZipToFile* NewLC(RFs &aRfs, const TDesC &aGzFileName, RFile &aOutput, TInt aBufferSize=0x8000);
Description
Creates a new CEZGZipToFile object and leaves it on the CleanupStack
Parameters
RFs &aRfs |
open file server session
|
const TDesC16 &aGzFileName |
name of the file to be de-compressed
|
RFile &aOutput |
the target file to hold the un-compressed data
|
TInt aBufferSize |
required size of buffers
|
|
Return value
NewL(RFs &,const TDesC &,RFile &,TInt)
IMPORT_C static CEZGZipToFile* NewL(RFs &aRfs, const TDesC &aGzFileName, RFile &aOutput, TInt aBufferSize=0x8000);
Description
Creates a new CEZGZipToFile object
Parameters
RFs &aRfs |
open file server session
|
const TDesC16 &aGzFileName |
name of the file to be de-compressed
|
RFile &aOutput |
the target file to hold the un-compressed data
|
TInt aBufferSize |
required size of buffers
|
|
Return value
ResetL(RFs &,const TDesC &,RFile &,TInt)
IMPORT_C void ResetL(RFs &aRfs, const TDesC &aGzFileName, RFile &aOutput, TInt aBufferSize=0x8000);
Description
Quits the current de-compression operation and restarts with the specified arguments
Parameters
RFs &aRfs |
open file server session
|
const TDesC16 &aGzFileName |
name of the file to be de-compressed
|
RFile &aOutput |
the target file to hold the un-compressed data
|
TInt aBufferSize |
required size of buffers
|
|
Leave codes
... |
Any of the system wide error codes
|
|
IMPORT_C TBool InflateL();
Description
De-compresses the current zip file in stages. The function needs to called again until the de-compression is finalised, in
which case it will return EFalse - for example...
while ( decompressor->InflateL() )
{
// No action required
}
Return value
TBool
|
ETrue if the de-compression is not complete, and function must be called again EFalse if the de-compression is finalised
|
|
Leave codes
KEZlibErrBadGZipCrc |
Invalid CRC check
|
... |
Any of the system wide error codes
|
|