io::FileOutputStream Class Reference

A file output stream is an output stream for writing data to a File or to a FileDescriptor. Whether or not a file is available or may be created depends upon the underlying platform. Some platforms, in particular, allow a file to be opened for writing by only one FileOutputStream (or other file-writing object) at a time. In such situations the constructors in this class will fail if the file involved is already open. More...

#include <FileOutputStream.h>

Inheritance diagram for io::FileOutputStream:

Inheritance graph
[legend]
Collaboration diagram for io::FileOutputStream:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 FileOutputStream (const lang::String &filename)
virtual ~FileOutputStream ()
lang::String toString () const
void close ()
void write (const int32 data)
void write (const char data)
void write (const lang::String &data)
void write (const char *pData, int32 size)
const char * toString ()


Detailed Description

A file output stream is an output stream for writing data to a File or to a FileDescriptor. Whether or not a file is available or may be created depends upon the underlying platform. Some platforms, in particular, allow a file to be opened for writing by only one FileOutputStream (or other file-writing object) at a time. In such situations the constructors in this class will fail if the file involved is already open.

Note:
FileOutputStream is meant for writing streams of raw bytes such as image data. We use write(string) to work with strings.

Constructor & Destructor Documentation

io::FileOutputStream::FileOutputStream ( const lang::String filename  ) 

Constructor

virtual io::FileOutputStream::~FileOutputStream (  )  [virtual]

Destructor


Member Function Documentation

lang::String io::FileOutputStream::toString (  )  const

Returns name of the file

void io::FileOutputStream::close (  ) 

Close the file.

void io::FileOutputStream::write ( const int32  data  ) 

See also:
OutputStream::write(const int32 data)

void io::FileOutputStream::write ( const char  data  )  [virtual]

void io::FileOutputStream::write ( const lang::String data  )  [virtual]

void io::FileOutputStream::write ( const char *  pData,
int32  size 
) [virtual]

See also:
OutputStream::write(const void* data, int32 size)

Implements io::OutputStream.

const char* io::FileOutputStream::toString (  )  [virtual]

See also:
Object::toString()

Implements Object.


The documentation for this class was generated from the following file:

Generated on Mon Mar 3 10:53:09 2008 for Aika by  doxygen 1.5.5