EZGZipFile Class Reference
The
EZGZipFile
class handles writing / reading of headers and trailers to / from zip files
Member Functions Documentation
IsGzipFile(RFs &, const TDesC &)
IMPORT_C
TBool
|
IsGzipFile
|
(
|
RFs
&
|
aRfs,
|
|
const
TDesC
&
|
aFname
|
|
)
|
[static]
|
Interface is deprecated because it is unsafe as it may leave. It is available for backward compatibility reasons only.
EZGZipFile::IsGzipFileL
IsGzipFileL(RFs &, const TDesC &)
IMPORT_C
TBool
|
IsGzipFileL
|
(
|
RFs
&
|
aRfs,
|
|
const
TDesC
&
|
aFname
|
|
)
|
[static]
|
Determine if the given file is a valid zip file
-
leave
-
... Any of the system wide error codes
Parameters
RFs
& aRfs
|
file server session
|
const
TDesC
& aFname
|
name of the file to check
|
LocateAndReadTrailerL(RFs &, const TDesC &, TEZGZipTrailer &)
Find the zip trailer within the specified file, and read it into the
TEZGZipTrailer
object
-
leave
-
KEZlibErrBadGZipHeader Invalid zip header
-
leave
-
... Any of the system wide error codes
Parameters
RFs
& aRfs
|
file server session
|
const
TDesC
& aFname
|
the file to read from
|
TEZGZipTrailer
& aTrailer
|
the target trailer object
|
ReadHeaderL(RFile &, TEZGZipHeader &)
Read the zip header from the specified zip file into the
TEZGZipHeader
object
-
leave
-
KEZlibErrBadGZipHeader invalid zip header
-
leave
-
... Any of the system wide error codes
ReadStringIntoDescriptorL(RFile &, HBufC8 **)
void
|
ReadStringIntoDescriptorL
|
(
|
RFile
&
|
aFile,
|
|
HBufC8
**
|
aDes
|
|
)
|
[private, static]
|
ReadTrailerL(RFile &, TEZGZipTrailer &)
Read the zip trailer from the specified zip file into the
TEZGZipTrailer
object
-
leave
-
KEZlibErrBadGZipTrailer invalid zip trailer
-
leave
-
... Any of the system wide error codes
WriteHeaderL(RFile &, TEZGZipHeader &)
Write the zip header to the specified file
-
leave
-
... Any of the system wide error codes
Parameters
RFile
& aFile
|
the file to write to
|
TEZGZipHeader
& aHeader
|
the header object to write to the file
|
WriteTrailerL(RFile &, TEZGZipTrailer &)
Write the zip trailer to the specified file
-
leave
-
... Any of the system wide error codes
Parameters
RFile
& aFile
|
the file to write to
|
TEZGZipTrailer
& aTrailer
|
the trailer object to write to the file
|
Member Data Documentation
const TUint8 ID1
First of the header ID pair
const TUint8 ID2
Second of the header ID pair
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.