Module: Advanced Tools Package: Streams
RWUCharArrayOutputStream RWUCharOutputStream RWHandleBase
#include <rw/stream/RWUCharArrayOutputStream.h>
Handle class for Unicode character output streams that support an extended interface. This interface allows retrieval of the output streams' inserted data as a UTF-16 character array. Implements the handle idiom from the handle-body pattern.
NOTE -- All Unicode-named variables, such as UChar or unicodeArray refer to the Unicode form UTF-16.
RW_EXPLICIT RWUCharArrayOutputStream(RWUCharArrayOutputStreamImp* body);
Constructor.
Parameter List
body |
A pointer to an implementation class supporting the abstract interface RWUCharArrayOutputStreamImp. |
RWUCharArrayOutputStream(const RWUCharArrayOutputStream&
handle);
Copy constructor.
Parameter List
handle |
A UTF-16 character array stream handle used to initialize the newly created handle. |
RWUCharArrayOutputStream& operator=(const RWUCharArrayOutputStream& handle);
Assignment operator. Throws no exceptions.
Parameter List
handle |
A UTF-16 character array stream handle used to initialize this handle. |
void clear();
Resets the underlying buffer.
RWUChar* getUCharacterArray();
Returns a pointer to the array of UTF-16 characters inserted into the stream since its creation. Users are responsible for freeing the memory associated with the array returned by this function using operator delete[].
RWSize getUCharacterArraySize() const;
Returns the size of the UTF-16 character array that would be returned by a call to function getUCharacterArray().
© 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.