Module: Advanced Tools Package: Streams
RWFilteredByteOutputStreamImp RWByteOutputStreamImp RWOutputStreamImp RWStreamImp RWBodyBase
close() flush() getSinkStream() |
isBad() isFail() isGood() |
RWFilteredByteOutputStreamImp() write() ~RWFilteredByteOutputStreamImp() |
#include <rw/stream/RWFilteredByteOutputStreamImp.h>
Abstract base class for all the filtered binary output stream implementation classes. A filtered output stream is a stream that process elements and then forwards the result to another stream for further processing. Implements the body idiom from the handle-body pattern.
RWFilteredByteOutputStreamImp(RWByteOutputStream& sinkStream);
Used by derived classes to initialize the next processing stream.
Parameter List
sinkStream |
A handle to the next processing stream. |
virtual ~RWFilteredByteOutputStreamImp();
Destructor.
virtual void close();
Forwards the close() request to the next processing stream.
virtual void flush();
Forwards the flush() request to the next processing stream.
virtual bool isBad() const;
Forwards the isBad() request to the next processing stream. Throws no exceptions.
virtual bool isFail() const;
Forwards the isFail() request to the next processing stream. Throws no exceptions.
virtual bool isGood() const;
Forwards the isGood() request to the next processing stream. Throws no exceptions.
virtual void write(RWByte byteValue);
Forwards the writing of a single byte to the next processing stream.
Parameter List
byteValue |
The byte to be written. |
virtual void write(const RWByte* byteArray, RWSize numBytes);
Forwards the writing of an array of bytes to the next processing stream.
Parameter List
byteArray |
A pointer to the first element of the array. |
numBytes |
The number of bytes to be written to the stream. |
RWByteOutputStream& getSinkStream(); const RWByteOutputStream& getSinkStream() const;
These functions return a handle to the next processing stream. They throw no exceptions.
© 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.