|
OpenTop 1.3 | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||
SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD |
#include "ot/io/FilterOutputStream.h"
The FilterOutputStream class overrides all methods of OutputStream with versions that pass requests to the contained output stream. Derived classes of FilterOutputStream are expected to further override some of these methods to perform some useful function before the data is written out to the sink (which may be yet another FilterOutputStream).
Constructor/Destructor Summary | |
FilterOutputStream(OutputStream* pOutputStream) Constructs a FilterOutputStream using pOutputStream as the contained output stream. |
Method Summary | |
virtual void |
close() Closes the output stream and releases system resources associated with the stream. |
virtual void |
flush() Forces all buffered data to be written out and sent to the final data sink. |
virtual void |
flushBuffers() Forces all data buffers associated with this output stream to be written out. |
protected RefPtr< OutputStream > |
getOutputStream() const Returns the contained output stream. |
virtual void |
write(Byte x) Writes the single byte x to this output stream. |
virtual void |
write(const Byte* pBuffer, size_t bufLen) Writes an array of bytes to this output stream. |
Methods inherited from class ot::ManagedObject |
addRef, getRefCount, onFinalRelease, operator=, release |
Constructor/Destructor Detail |
FilterOutputStream(OutputStream* pOutputStream)
NullPointerException
- Method Detail |
virtual void close()
IOException
- virtual void flush()
IOException
- virtual void flushBuffers()
IOException
- protected RefPtr< OutputStream > getOutputStream() const
virtual void write(Byte x)
x
- IOException
- virtual void write(const Byte* pBuffer, size_t bufLen)
pBuffer
- bufLen
- NullPointerException
- IOException
-
|
OpenTop 1.3 | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||
SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD |