io::OutputStream Class Reference

This abstract class is the superclass of all classes representing an output stream of bytes. An output stream accepts output bytes and sends them to some sink. More...

#include <OutputStream.h>

Inheritance diagram for io::OutputStream:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void flush ()
virtual void write (const char data)=0
virtual void write (const lang::String &data)=0
virtual void write (const char *pData, int32 size)=0


Detailed Description

This abstract class is the superclass of all classes representing an output stream of bytes. An output stream accepts output bytes and sends them to some sink.

Member Function Documentation

virtual void io::OutputStream::flush (  )  [inline, virtual]

Flushes this output stream and forces any buffered output bytes to be written out.

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

Writes the specified byte to this byte array output stream.

Implemented in io::ByteArrayOutputStream, and io::FileOutputStream.

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

Writes a string in the array output stream.

Note:
With this method we don't need to use the FileWriter for example.
Parameters:
data Data to be write

Implemented in io::ByteArrayOutputStream, and io::FileOutputStream.

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

Writes len bytes from the specified byte array to this output stream.

Parameters:
data Data to be write
size Size of bytes

Implemented in io::ByteArrayOutputStream, and io::FileOutputStream.


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