class RFileWriteStream : public RWriteStream |
Supports the writing of a stream to a file.
Public Member Functions | |
---|---|
RFileWriteStream() | |
RFileWriteStream(const MExternalizer< TStreamRef > &) | |
RFileWriteStream(RFile &, TInt) | |
IMPORT_C void | Attach(RFile &, TInt) |
IMPORT_C TInt | Open(RFs &, const TDesC &, TUint) |
IMPORT_C TInt | Replace(RFs &, const TDesC &, TUint) |
IMPORT_C TInt | Temp(RFs &, const TDesC &, TFileName &, TUint) |
Private Attributes | |
---|---|
RFileBuf | iSink |
RFileWriteStream | ( | const MExternalizer< TStreamRef > & | anExter | ) | [inline] |
const MExternalizer< TStreamRef > & anExter |
IMPORT_C | RFileWriteStream | ( | RFile & | aFile, |
TInt | aPos = 0 | |||
) |
Constructs the write stream object, associates it with an already opened file, and prepares the stream for writing.
IMPORT_C TInt | Replace | ( | RFs & | aFs, |
const TDesC & | aName, | |||
TUint | aFileMode | |||
) |
Creates a new file, associates the file with this stream, and prepares the stream for writing.
The file replaces any existing file of the same name.
The stream will be written to offset zero in the file.
IMPORT_C TInt | Temp | ( | RFs & | aFs, |
const TDesC & | aPath, | |||
TFileName & | aName, | |||
TUint | aFileMode | |||
) |
Creates a temporary file, associates it with this stream, and prepares the stream for writing.
The new file is created in the specified path and a unique file name is generated by the file server.
Note that the store framework does not delete a temporary file after it is closed.
The stream will be written to offset zero in the file.
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.