|
OpenTop 1.3 | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||
SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD |
#include "ot/io/FilterWriter.h"
The FilterWriter class overrides all methods of Writer with versions that pass requests to the contained Writer. Derived classes of FilterWriter are expected to further override some of these methods to perform some useful function before the characters are written out to the sink (which may be yet another FilterWriter).
Constructor/Destructor Summary | |
FilterWriter(Writer* pWriter) Construct a FilterWriter with pWriter as the contained Writer. |
Method Summary | |
virtual void |
close() Closes 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. |
protected RefPtr< Writer > |
getWriter() const Returns the Writer contained by this FilterWriter. |
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) Writes an array of CharType characters. |
Methods inherited from class ot::ManagedObject |
addRef, getRefCount, onFinalRelease, operator=, release |
Methods inherited from class ot::SynchronizedObject |
lock, unlock |
Methods inherited from class ot::io::Writer |
getLock |
Constructor/Destructor Detail |
FilterWriter(Writer* pWriter)
NullPointerException
- Method Detail |
virtual void close()
virtual void flush()
IOException
- virtual void flushBuffers()
protected RefPtr< Writer > getWriter() const
virtual void write(CharType c)
c
- IOException
- virtual void write(const Character& ch)
ch
- IOException
- virtual void write(const String& str)
str
- IOException
- virtual void write(const CharType* pStr, size_t len)
pStr
- len
- IOException
-
|
OpenTop 1.3 | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||
SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD |