Module: Advanced Tools Package: Streams
RWFilteredUCharOutputStreamImp RWUCharOutputStreamImp RWOutputStreamImp RWStreamImp RWBodyBase
close() flush() getSinkStream() |
isBad() isFail() isGood() |
RWFilteredUCharOutputStreamImp() write() ~RWFilteredUCharOutputStreamImp() |
#include <rw/stream/RWFilteredUCharOutputStreamImp.h>
Abstract base class for all the filtered UTF-16 output stream implementation classes. A filtered output stream is a stream that process elements and then forwards the result to another stream for further processing. Implements the body idiom from the handle-body pattern.
RWFilteredUCharOutputStreamImp(RWUCharOutputStream&
sinkStream);
Used by derived classes to initialize the next processing stream.
Parameter List
sinkStream |
A handle to the next processing stream. |
virtual ~RWFilteredUCharOutputStreamImp();
Destructor.
virtual void close();
Forwards the close() request to the next processing stream.
virtual void flush();
Forwards the flush() request to the next processing stream.
virtual bool isBad() const;
Forwards the isBad() request to the next processing stream. Throws no exceptions.
virtual bool isFail() const;
Forwards the isFail() request to the next processing stream. Throws no exceptions.
virtual bool isGood() const;
Forwards the isGood() request to the next processing stream. Throws no exceptions.
virtual void write(RWUChar unicodeValue);
Forwards the writing of a single UTF-16 character to the next processing stream.
Parameter List
unicodeValue |
The UTF-16 character to be written. |
virtual void write(const RWUChar* unicodeArray, RWSize numUChars);
Forwards the writing of an array of UTF-16 characters to the next processing stream.
Parameter List
unicodeArray |
A pointer to the first element of the array. |
numUChars |
The number of UTF-16 characters to be written to the stream. |
RWUCharOutputStream& getSinkStream(); const RWUCharOutputStream& getSinkStream() const;
These functions return a handle to the next processing stream. They throw no exceptions.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.