Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Advanced Tools Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWUCharToByteOutputStreamImp

Module:  Advanced Tools   Package:  Streams


RWUCharToByteOutputStreamImp RWUCharOutputStreamImp RWOutputStreamImp RWStreamImp RWBodyBase

Local Index

Members

Header File

#include <rw/stream/RWUCharToByteOutputStreamImp.h>

Description

Concrete class connecting a Unicode character stream to a binary stream. The UTF-16 characters are written as a sequence of bytes using the byte ordering (little endian, or big endian) supported by the system on which the code is executed. The UTF-16 character U+FEFF is inserted in the stream as first character to let input streams figure out the byte ordering used when generating the output byte sequence. Implements the body idiom from the handle-body pattern.

Protected Constructor

RWUCharToByteOutputStreamImp(RWByteOutputStream& sinkStream);

Public Destructor

virtual 
~RWUCharToByteOutputStreamImp();

Static Public Member Function

static RWUCharOutputStream 
make(RWByteOutputStream& sink);

Public Member Functions

virtual void 
close();
virtual void 
flush();
virtual bool 
isBad() const;
virtual bool 
isFail() const;
virtual bool 
isGood() const;
virtual void 
write(RWUChar unicodeValue);
virtual void 
write(const RWUChar* unicodeArray, RWSize numUChars);

Protected Member Functions

RWByteOutputStream& 
getSinkStream();

const RWByteOutputStream& 
getSinkStream() const;


Previous fileTop of DocumentContentsIndex pageNext file

© 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.