|
Qore Programming Language Reference Manual
0.8.13.5
|
An OutputStream implementation that performs on-the-fly conversion between two character encodings. More...

Public Member Functions | |
| nothing | close () |
| Flushes any buffered (unwritten) bytes, closes the output stream and releases all resources. More... | |
| constructor (Qore::OutputStream os, string sourceEncoding, string destEncoding) | |
| Creates the EncodingConversionOutputStream based on the OutputStream given. More... | |
| nothing | write (binary data) |
| Writes bytes to the output stream. More... | |
Public Member Functions inherited from Qore::OutputStream | |
| constructor () | |
| Constructor. More... | |
An OutputStream implementation that performs on-the-fly conversion between two character encodings.
STREAM-THREAD-ERROR to be thrown.
|
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.
| OUTPUT-STREAM-CLOSED-ERROR | the output stream has already been closed |
| STREAM-THREAD-ERROR | this exception is thrown if this method is called from any thread other than the thread that created the object |
Implements Qore::OutputStream.
| Qore::EncodingConversionOutputStream::constructor | ( | Qore::OutputStream | os, |
| string | sourceEncoding, | ||
| string | destEncoding | ||
| ) |
Creates the EncodingConversionOutputStream based on the OutputStream given.
| os | the destination OutputStream to write bytes to |
| sourceEncoding | the encoding of the characters that will be written to this stream |
| destEncoding | the destination character encoding that will be written to the underlying OutputStream os |
| ENCODING-CONVERSION-ERROR | if either of the encodings is unsupported |
|
virtual |
Writes bytes to the output stream.
| data | the data to write |
| OUTPUT-STREAM-CLOSED-ERROR | the output stream has already been closed |
| STREAM-THREAD-ERROR | this exception is thrown if this method is called from any thread other than the thread that created the object |
Implements Qore::OutputStream.