#include <bgstream.h>
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. |
Applications that need to define a subclass of OutputStream must always provide at least a method that writes one byte of output.
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.
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.
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.