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

  • RZipFileMemberReaderStream
Public Member Functions
~RZipFileMemberReaderStream()
voidClose()
IMPORT_C TIntRead(TDes16 &, TInt)
TInt Read(TDes8 &, TInt)
voidReadL(TDes16 &, TInt)
voidRelease()
Private Member Functions
RZipFileMemberReaderStream(CZipFile &, TUint32, TUint32, TUint32, TUint32)
voidAttach(MStreamBuf *)
voidConstructL()
voidDetach()
TInt GetBytes(TByte *, TUint32, TUint32 *)
TInt GetCompressedBytes(void)
TInt GetStoredBytes(TByte *, TUint32, TUint32 *)
RZipFileMemberReaderStream *NewL(CZipFile &, TUint32, TUint32, TUint32, TUint32)
voidPop()
voidPushL()
TInt Read(void)
TInt Read(TByte *, TUint32, TUint32 *)
TInt16 ReadInt16L()
TInt32 ReadInt32L()
TInt8 ReadInt8L()
voidReadL(TDes8 &)
voidReadL(TDes16 &)
voidReadL(TDes8 &, TChar)
voidReadL(TDes16 &, TChar)
voidReadL(TUint8 *, TInt)
voidReadL(TUint16 *, TInt)
voidReadL(RWriteStream &)
voidReadL(RWriteStream &, TInt)
voidReadL(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
enumanonymous { 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 *)

voidAttach(MStreamBuf *)[private]

Parameters

MStreamBuf *

Close()

voidClose()

ConstructL()

voidConstructL()[private]

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

Detach()

voidDetach()[private]

GetBytes(TByte *, TUint32, TUint32 *)

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

Parameters

TByte *
TUint32
TUint32 *

GetCompressedBytes(void)

TInt GetCompressedBytes(void)[private]

Parameters

void

GetStoredBytes(TByte *, TUint32, TUint32 *)

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

Parameters

TByte *
TUint32
TUint32 *

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

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

Pop()

voidPop()[private]

PushL()

voidPushL()[private]

Read(TDes16 &, TInt)

IMPORT_C TIntRead(TDes16 &aDes,
TIntaLength
)

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

Parameters

TDes16 & aDesThe target descriptor for the data read from the stream buffer
TInt aLengthThe maximum number of bytes to be read

Read(TDes8 &, TInt)

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

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

Parameters

TDes8 & aDesThe target descriptor for the data read from the stream buffer
TInt aLengthThe 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]

Parameters

TByte *
TUint32
TUint32 *

ReadInt16L()

TInt16 ReadInt16L()[private]

ReadInt32L()

TInt32 ReadInt32L()[private]

ReadInt8L()

TInt8 ReadInt8L()[private]

ReadL(TDes16 &, TInt)

voidReadL(TDes16 &aDes,
TIntaLength
)[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 & aDesThe target descriptor for the data read from the stream buffer
TInt aLengthThe maximum number of bytes to be read

ReadL(TDes8 &)

voidReadL(TDes8 &)[private]

Parameters

TDes8 &

ReadL(TDes16 &)

voidReadL(TDes16 &)[private]

Parameters

TDes16 &

ReadL(TDes8 &, TChar)

voidReadL(TDes8 &,
TChar
)[private]

Parameters

TDes8 &
TChar

ReadL(TDes16 &, TChar)

voidReadL(TDes16 &,
TChar
)[private]

Parameters

TDes16 &
TChar

ReadL(TUint8 *, TInt)

voidReadL(TUint8 *,
TInt
)[private]

Parameters

TUint8 *
TInt

ReadL(TUint16 *, TInt)

voidReadL(TUint16 *,
TInt
)[private]

Parameters

TUint16 *
TInt

ReadL(RWriteStream &)

voidReadL(RWriteStream &)[private]

Parameters

RWriteStream &

ReadL(RWriteStream &, TInt)

voidReadL(RWriteStream &,
TInt
)[private]

Parameters

RWriteStream &
TInt

ReadL(TInt)

voidReadL(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()

voidRelease()

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]