RFileReadStream Class Reference

#include <s32file.h>

class RFileReadStream : public RReadStream

Inherits from

Detailed Description

Supports the reading of a stream from a file.

Constructor & Destructor Documentation

RFileReadStream ( )

RFileReadStream()[inline]

Constructs an empty read stream object.

RFileReadStream ( RFile &, TInt )

IMPORT_CRFileReadStream(RFile &aFile,
TIntaPos = 0
)

Constructs the read stream object, associates it with an already opened file, and prepares the stream for reading.

ParameterDescription
aFileA reference to the opened file.
aPosThe offset into the file from where the stream is to be read. Defaults to zero.

Member Function Documentation

Attach ( RFile &, TInt )

IMPORT_C voidAttach(RFile &aFile,
TIntaPos = 0
)

Associates this stream with an already opened file and prepares the stream for reading.

ParameterDescription
aFileA reference to the opened file.
aPosThe offset into the file from where the stream is to be read. Defaults to zero.

Open ( RFs &, const TDesC &, TUint )

IMPORT_C TIntOpen(RFs &aFs,
const TDesC &aName,
TUintaFileMode
)

Opens a file containing a stream and prepares the stream for reading.

The stream will be read from offset zero in the file.

See also: TFileMode

ParameterDescription
aFsHandle to a file server session.
aNameThe full path name of the file.
aFileModeThe mode in which the file is to be accessed. The mode is defined by by the TFileMode type.

Returns: KErrNone, if successful; otherwise, one of the other system wide eror codes.