Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

BGOutputStream Class Reference

This abstract class is the superclass of all classes representing an outputstream of bytes. More...

#include <bgstream.h>

List of all members.


Public Members

virtual void write ( unsigned char data ) = 0
Writes one byte to stream. More...

virtual long write ( unsigned char *buffer, long offset, long len )
Writes buffer to stream. More...

virtual void flush ( )
Flush stream, all buffers are flushed and written to stream. More...

virtual void close ( )
Closes stream.


Detailed Description

This abstract class is the superclass of all classes representing an outputstream of bytes.

Applications that need to define a subclass of OutputStream must always provide at least a method that writes one byte of output.


Member Function Documentation

virtual void BGOutputStream::write (unsigned char data) [pure virtual]

Writes one byte to stream.

This method is specialized in subclasses like FileOutputStream, etc. - therefore it is declared pure virtual.

Parameters:
data   One byte data

virtual long BGOutputStream::write (unsigned char * buffer, long offset, long len) [virtual]

Writes buffer to stream.

By default simply write(byte) is called. For better performance also this method should be overwritten.

Parameters:
buffer   Buffer which should be written to stream @paran offset Offset to use
len   Amount of bytes to write to stream

virtual void BGOutputStream::flush () [virtual]

Flush stream, all buffers are flushed and written to stream.

Default is empty. Special behaviour is defined in subclass like FileOutputStream.


The documentation for this class was generated from the following file:
Generated at Fri Feb 18 10:57:07 2000 for bgclass by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999