Qore Programming Language Reference Manual
0.8.13.8
|
This class defines an abstract interface for output streams. More...
Public Member Functions | |
abstract nothing | close () |
Flushes any buffered (unwritten) bytes, closes the output stream and releases all resources. More... | |
constructor () | |
Constructor. More... | |
abstract nothing | write (binary data) |
Writes bytes to the output stream. More... | |
This class defines an abstract interface for output streams.
Classes inheriting this class can be used to write bytes to files, sockets, memory etc.
STREAM-THREAD-ERROR
to be thrown.
|
pure virtual |
Flushes any buffered (unwritten) bytes, closes the output stream and releases all resources.
Any methods called on a closed output stream will throw an exception.
Implemented in Qore::FileOutputStream, Qore::StderrOutputStream, Qore::StdoutOutputStream, Qore::StringOutputStream, Qore::EncodingConversionOutputStream, Qore::BinaryOutputStream, Qore::PipeOutputStream, and Qore::TransformOutputStream.
Qore::OutputStream::constructor | ( | ) |
Constructor.
Used by subclasses defined in the Qore programming language.
|
pure virtual |
Writes bytes to the output stream.
data | the data to write |
Implemented in Qore::StringOutputStream, Qore::FileOutputStream, Qore::BinaryOutputStream, Qore::EncodingConversionOutputStream, Qore::StderrOutputStream, Qore::StdoutOutputStream, Qore::PipeOutputStream, and Qore::TransformOutputStream.