#include <rtstreams.h>
Inheritance diagram for lrt::FilterOutputStream:

Public Methods | |
| FilterOutputStream (OutputStream *out) | |
Constructs a new FilterOutputStream, which writes its data from the underlying stream out. | |
| virtual bool | write (int b) |
| Writes a byte to the underlying output stream. More... | |
| virtual bool | write (const Array< char > &b, int off, int len) |
| Writes part of an array to the underlying output stream. More... | |
| virtual bool | write (const Array< char > &b) |
| Writes the whole array b to the output stream. More... | |
| virtual void | flush () |
| Advises the underlying output stream to flush its output buffer. | |
| virtual void | close () |
| Closes the underlying output stream. More... | |
| virtual | ~FilterOutputStream () |
| Destroys this FilterOutputStream and the underlying output stream. | |
Protected Attributes | |
| OutputStream * | out |
| The underlying output stream, where data is written to. | |
This class has no practical application, but it's a good starting point for clever streams.
|
|
Closes the underlying output stream. Note that closed streams cannot be re-opened. Reimplemented from lrt::OutputStream. |
|
|
Writes the whole array b to the output stream. Since String is derived from Array<char> in libRT, you may also use this method to write Strings to the output stream.
Reimplemented from lrt::OutputStream. |
|
||||||||||||||||
|
Writes part of an array to the underlying output stream.
Reimplemented from lrt::OutputStream. |
|
|
Writes a byte to the underlying output stream.
Implements lrt::OutputStream. |