A filtered output stream which applies a charset conversion to input bytes. More...


Public Member Functions | |
| charsetFilteredOutputStream (const charset &source, const charset &dest, outputStream &os) | |
| ~charsetFilteredOutputStream () | |
| outputStream & | getNextOutputStream () |
| void | write (const value_type *const data, const size_type count) |
| void | flush () |
A filtered output stream which applies a charset conversion to input bytes.
May throw a exceptions::charset_conv_error if an error occured when initializing convert, or during charset conversion.
| charsetFilteredOutputStream | ( | const charset & | source, | |
| const charset & | dest, | |||
| outputStream & | os | |||
| ) |
Construct a new filter for the specified output stream.
| source | input charset | |
| dest | output charset | |
| os | stream into which write filtered data |
References charset::getName().
| void flush | ( | ) | [virtual] |
Flush this output stream and forces any buffered output bytes to be written out to the stream.
Implements outputStream.
References outputStream::flush(), outputInvalidChar(), and outputStream::write().
| outputStream & getNextOutputStream | ( | ) | [virtual] |
Return a reference to the stream being filtered.
Implements filteredOutputStream.
| void write | ( | const value_type *const | data, | |
| const size_type | count | |||
| ) | [virtual] |
Write data to the stream.
| data | buffer containing data to write | |
| count | number of bytes to write |
Implements outputStream.
References outputInvalidChar().
1.6.2