CEZGZipToFile Class Reference
class CEZGZipToFile : public CBase
|
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
InflateL()
function.
Constructor & Destructor Documentation
CEZGZipToFile()
CEZGZipToFile
|
(
|
)
|
[private]
|
Member Functions Documentation
ConstructL(RFs &, const TDesC &, RFile &, TInt)
void
|
ConstructL
|
(
|
RFs
&
|
aRfs,
|
|
const
TDesC
&
|
aGzFileName,
|
|
RFile
&
|
aOutput,
|
|
TInt
|
aBufferSize
|
|
)
|
[private]
|
InflateL()
IMPORT_C
TBool
|
InflateL
|
(
|
)
|
|
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
}
-
leave
-
KEZlibErrBadGZipCrc Invalid CRC check
-
leave
-
... Any of the system wide error codes
InitialiseBufManL(RFs &, const TDesC &, RFile &, TInt)
void
|
InitialiseBufManL
|
(
|
RFs
&
|
aRfs,
|
|
const
TDesC
&
|
aGzFileName,
|
|
RFile
&
|
aOutput,
|
|
TInt
|
aBufferSize
|
|
)
|
[private]
|
NewL(RFs &, const TDesC &, RFile &, TInt)
Parameters
RFs
& aRfs
|
open file server session
|
const
TDesC
& aGzFileName
|
name of the file to be de-compressed
|
RFile
& aOutput
|
the target file to hold the un-compressed data
|
TInt
aBufferSize = 0x8000
|
required size of buffers
|
NewLC(RFs &, const TDesC &, RFile &, TInt)
Parameters
RFs
& aRfs
|
open file server session
|
const
TDesC
& aGzFileName
|
name of the file to be de-compressed
|
RFile
& aOutput
|
the target file to hold the un-compressed data
|
TInt
aBufferSize = 0x8000
|
required size of buffers
|
ResetL(RFs &, const TDesC &, RFile &, TInt)
IMPORT_C void
|
ResetL
|
(
|
RFs
&
|
aRfs,
|
|
const
TDesC
&
|
aGzFileName,
|
|
RFile
&
|
aOutput,
|
|
TInt
|
aBufferSize = 0x8000
|
|
)
|
|
Quits the current de-compression operation and restarts with the specified arguments
-
leave
-
... Any of the system wide error codes
Parameters
RFs
& aRfs
|
open file server session
|
const
TDesC
& aGzFileName
|
name of the file to be de-compressed
|
RFile
& aOutput
|
the target file to hold the un-compressed data
|
TInt
aBufferSize = 0x8000
|
required size of buffers
|
Member Data Documentation
CEZGzipToFileBM * iBufferManager
CEZGzipToFileBM *
|
iBufferManager
|
[private]
|
CEZDecompressor * iDecompressor
RFile
iGZipFile
RFile
|
iGZipFile
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.