RZipFileMemberReaderStream Class Reference

class RZipFileMemberReaderStream : public CBase

A RZipFileMemberReaderStream represents a input stream for compressed files in the archive. This is a friend class to CZipFile . In order to create a input stream for a file in the archive, CZipFile will call its member function GetInputStreamL() by passing a pointer to RZipFileMemberReaderStream and the function will return the input stream for the file Note: This class is actually a C class as it derives from CBase

Inherits from

Public Member Functions
~RZipFileMemberReaderStream ()
void Close ()
IMPORT_C TInt Read ( TDes16 &, TInt )
TInt Read ( TDes8 &, TInt )
void ReadL ( TDes16 &, TInt )
void Release ()
Private Member Functions
RZipFileMemberReaderStream ( CZipFile &, TUint32 , TUint32 , TUint32 , TUint32 )
void Attach ( MStreamBuf *)
void ConstructL ()
void Detach ()
TInt GetBytes ( TByte *, TUint32 , TUint32 *)
TInt GetCompressedBytes (void)
TInt GetStoredBytes ( TByte *, TUint32 , TUint32 *)
RZipFileMemberReaderStream * NewL ( CZipFile &, TUint32 , TUint32 , TUint32 , TUint32 )
void Pop ()
void PushL ()
TInt Read (void)
TInt Read ( TByte *, TUint32 , TUint32 *)
TInt16 ReadInt16L ()
TInt32 ReadInt32L ()
TInt8 ReadInt8L ()
void ReadL ( TDes8 &)
void ReadL ( TDes16 &)
void ReadL ( TDes8 &, TChar )
void ReadL ( TDes16 &, TChar )
void ReadL ( TUint8 *, TInt )
void ReadL ( TUint16 *, TInt )
void ReadL ( RWriteStream &)
void ReadL ( RWriteStream &, TInt )
void ReadL ( TInt )
TReal32 ReadReal32L ()
TReal64 ReadReal64L ()
TUint16 ReadUint16L ()
TUint32 ReadUint32L ()
TUint8 ReadUint8L ()
MStreamBuf * Source ()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Member Enumerations
enum anonymous { kCompressedBytesSize  = 1024 }
Private Attributes
TUint32 iBytesLength
TByte iCompressedBytes
TUint32 iCompressedBytesOffset
TUint32 iCompressedSize
TUint32 iCompressionMethod
TBool iDone
TUint32 iFileOffset
TUint32 iOffset
z_stream iStream
TUint32 iUncompressedSize
CZipFile & iZipFile

Constructor & Destructor Documentation

RZipFileMemberReaderStream(CZipFile &, TUint32, TUint32, TUint32, TUint32)

RZipFileMemberReaderStream ( CZipFile & ,
TUint32 ,
TUint32 ,
TUint32 ,
TUint32
) [private]

~RZipFileMemberReaderStream()

IMPORT_C ~RZipFileMemberReaderStream ( )

Destructor. All dynamically allocated data structures for this stream are freed.

Member Functions Documentation

Attach(MStreamBuf *)

void Attach ( MStreamBuf * ) [private]

Parameters

MStreamBuf *

Close()

void Close ( )

ConstructL()

void ConstructL ( ) [private]

Creates input stream to be used for reading the contents of the compressed file.

Detach()

void Detach ( ) [private]

GetBytes(TByte *, TUint32, TUint32 *)

TInt GetBytes ( TByte * ,
TUint32 ,
TUint32 *
) [private]

GetCompressedBytes(void)

TInt GetCompressedBytes ( void ) [private]

Parameters

void

GetStoredBytes(TByte *, TUint32, TUint32 *)

TInt GetStoredBytes ( TByte * ,
TUint32 ,
TUint32 *
) [private]

NewL(CZipFile &, TUint32, TUint32, TUint32, TUint32)

RZipFileMemberReaderStream * NewL ( CZipFile & ,
TUint32 ,
TUint32 ,
TUint32 ,
TUint32
) [private, static]

Pop()

void Pop ( ) [private]

PushL()

void PushL ( ) [private]

Read(TDes16 &, TInt)

IMPORT_C TInt Read ( TDes16 & aDes,
TInt aLength
)

Reads data from the stream buffer into the specified descriptor. On return, contains the data read from the stream buffer

Parameters

TDes16 & aDes The target descriptor for the data read from the stream buffer
TInt aLength The maximum number of bytes to be read

Read(TDes8 &, TInt)

TInt Read ( TDes8 & aDes,
TInt aLength
) [virtual]

Overload version of the RZipFileMemberReaderStream read method. On return, contains the data read from the stream buffer.

Parameters

TDes8 & aDes The target descriptor for the data read from the stream buffer
TInt aLength The maximum number of bytes to be read

Read(void)

TInt Read ( void ) [private, virtual]

Parameters

void

Read(TByte *, TUint32, TUint32 *)

TInt Read ( TByte * ,
TUint32 ,
TUint32 *
) [private, virtual]

ReadInt16L()

TInt16 ReadInt16L ( ) [private]

ReadInt32L()

TInt32 ReadInt32L ( ) [private]

ReadInt8L()

TInt8 ReadInt8L ( ) [private]

ReadL(TDes16 &, TInt)

void ReadL ( TDes16 & aDes,
TInt aLength
) [virtual]

Overload version of the RZipFileMemberReaderStream readL method. On return, contains the data read from the stream buffer.

leave
KErrNone If all bytes read successfully.
leave
KErrCorrupt If reading fails.
leave
KErrEof If end of file is reached.
leave
... Any one of the system-wide error codes for other errors.

Parameters

TDes16 & aDes The target descriptor for the data read from the stream buffer
TInt aLength The maximum number of bytes to be read

ReadL(TDes8 &)

void ReadL ( TDes8 & ) [private]

Parameters

TDes8 &

ReadL(TDes16 &)

void ReadL ( TDes16 & ) [private]

Parameters

TDes16 &

ReadL(TDes8 &, TChar)

void ReadL ( TDes8 & ,
TChar
) [private]

Parameters

TDes8 &
TChar

ReadL(TDes16 &, TChar)

void ReadL ( TDes16 & ,
TChar
) [private]

Parameters

TDes16 &
TChar

ReadL(TUint8 *, TInt)

void ReadL ( TUint8 * ,
TInt
) [private]

Parameters

TUint8 *
TInt

ReadL(TUint16 *, TInt)

void ReadL ( TUint16 * ,
TInt
) [private]

Parameters

TUint16 *
TInt

ReadL(RWriteStream &)

void ReadL ( RWriteStream & ) [private]

Parameters

RWriteStream &

ReadL(RWriteStream &, TInt)

void ReadL ( RWriteStream & ,
TInt
) [private]

ReadL(TInt)

void ReadL ( TInt ) [private]

Parameters

TInt

ReadReal32L()

TReal32 ReadReal32L ( ) [private]

ReadReal64L()

TReal64 ReadReal64L ( ) [private]

ReadUint16L()

TUint16 ReadUint16L ( ) [private]

ReadUint32L()

TUint32 ReadUint32L ( ) [private]

ReadUint8L()

TUint8 ReadUint8L ( ) [private]

Release()

void Release ( )

Source()

MStreamBuf * Source ( ) [private]

Member Enumerations Documentation

Enum anonymous

Enumerators

kCompressedBytesSize = 1024

Member Data Documentation

TUint32 iBytesLength

TUint32 iBytesLength [private]

The number of bytes already read in uncompressed bytes

TByte iCompressedBytes

TByte iCompressedBytes [private]

To store compressed bytes read

TUint32 iCompressedBytesOffset

TUint32 iCompressedBytesOffset [private]

Not used in implementation

TUint32 iCompressedSize

TUint32 iCompressedSize [private]

The size of compressed file

TUint32 iCompressionMethod

TUint32 iCompressionMethod [private]

The method for compressing file

TBool iDone

TBool iDone [private]

TUint32 iFileOffset

TUint32 iFileOffset [private]

TUint32 iOffset

TUint32 iOffset [private]

z_stream iStream

z_stream iStream [private]

TUint32 iUncompressedSize

TUint32 iUncompressedSize [private]

The size of uncompressed file

CZipFile & iZipFile

CZipFile & iZipFile [private]