|
OpenTop 1.5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||||
| SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD | |||||||
#include "ot/io/Writer.h"

Depending on the configuration chosen, Unicode characters may be represented internally using 32-bit UCS-4 characters, 16-bit UTF-16 characters or 8-bit UTF-8 characters. See SystemCodeConverter for further information.
The Writer interface mirrors OutputStream, but deals in characters where OutputStream deals in bytes.
| Constructor/Destructor Summary | |
Writer()Default constructor. | |
Writer(SynchronizedObject* pLockObject)Constructor taking a SynchronizedObject which will be used as the lock for synchronized functions. | |
| Method Summary | |
virtual void |
close()=0Closes the character stream, flushing it first. |
virtual void |
flush()Flushes any output buffers before forcing the output to its final destination. |
virtual void |
flushBuffers()If this Writer maintains an output buffer, the buffer is emptied and written to the output destination without requesting the final destination to flush the output. |
RefPtr< SynchronizedObject > |
getLock() constReturns a reference to the SynchronizedObject used for controlling access to synchronized methods. |
virtual void |
write(CharType c)Writes the single CharType character c. |
virtual void |
write(const Character& ch)Writes the Unicode character ch to the output stream. |
virtual void |
write(const String& str)Writes the sequence of CharType characters contained in the String str. |
virtual void |
write(const CharType* pStr, size_t len)=0Writes an array of CharType characters. |
| Methods inherited from class ot::ManagedObject |
addRef(), getRefCount(), onFinalRelease(), operator=(const ManagedObject&), release() |
| Methods inherited from class ot::SynchronizedObject |
lock(), unlock() |
| Protected Instance Data Members |
RefPtrMember< SynchronizedObject > m_rpLock| Typedefs |
typedef CharType unit_type
| Constructor/Destructor Detail |
Writer()
Writer(SynchronizedObject* pLockObject)
NullPointerException - | Method Detail |
virtual void close()=0
virtual void flush()
IOException - virtual void flushBuffers()
RefPtr< SynchronizedObject > getLock() const
virtual void write(CharType c)
c - IOException - virtual void write(const Character& ch)
write(ch.data(), ch.length());
ch - IOException - virtual void write(const String& str)
str - IOException - virtual void write(const CharType* pStr,
size_t len)=0
pStr - len - IOException -
|
OpenTop 1.5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||||
| SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD | |||||||