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

Public Methods | |
| virtual bool | write (int b)=0 |
| Writes a byte to the output stream. More... | |
| virtual bool | write (const Array< char > &b, int off, int len) |
| Writes part of an array to the output stream. More... | |
| virtual bool | write (const Array< char > &b) |
| Writes the whole array b to the output stream. More... | |
| bool | write (const char *c) |
| Convenience method. | |
| virtual void | flush () |
| Advises the system output stream to flush its output buffer. More... | |
| virtual void | close () |
| Closes the system output stream. More... | |
| virtual bool | fail () |
| Returns true if there was some system failure for this stream (such as, it couldn't be opened). | |
| virtual | ~OutputStream () |
| Destroys the output stream. More... | |
Protected Methods | |
| OutputStream () | |
| Constructs an output stream. More... | |
Protected Attributes | |
| bool | _fail |
Set _fail, if a system-dependent operation for this stream (such as opening) fails. | |
Since this abstract OutputStream does not implement any data destination, it is impossible to construct one. For concrete OutputStreams, look at:
|
|
Destroys the output stream.
The destructor of class OutputStream just calls the |
|
|
Constructs an output stream.
The constructor of class |
|
|
Closes the system output stream. Note that closed streams cannot be re-opened. Reimplemented in lrt::NetworkOutputStream. |
|
|
Advises the system output stream to flush its output buffer.
The Reimplemented in lrt::FileOutputStream. |
|
|
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 in lrt::NetworkOutputStream. |
|
||||||||||||||||
|
Writes part of an array to the output stream.
Reimplemented in lrt::NetworkOutputStream. |
|
|
Writes a byte to the output stream. Subclassers must implement this method.
Implemented in lrt::NetworkOutputStream. |