class Poco::DeflatingIOS
Overview
The base class for DeflatingOutputStream and DeflatingInputStream. Moreā¦
#include <DeflatingStream.h> class DeflatingIOS: public ios { public: // construction DeflatingIOS( std::ostream& ostr, DeflatingStreamBuf::StreamType type = DeflatingStreamBuf::STREAM_ZLIB, int level = Z_DEFAULT_COMPRESSION ); DeflatingIOS( std::ostream& ostr, int windowBits, int level ); DeflatingIOS( std::istream& istr, DeflatingStreamBuf::StreamType type = DeflatingStreamBuf::STREAM_ZLIB, int level = Z_DEFAULT_COMPRESSION ); DeflatingIOS( std::istream& istr, int windowBits, int level ); // methods DeflatingStreamBuf* rdbuf(); protected: // fields DeflatingStreamBuf _buf; }; // direct descendants class DeflatingInputStream; class DeflatingOutputStream;
Detailed Documentation
The base class for DeflatingOutputStream and DeflatingInputStream.
This class is needed to ensure the correct initialization order of the stream buffer and base classes.
Construction
DeflatingIOS( std::ostream& ostr, DeflatingStreamBuf::StreamType type = DeflatingStreamBuf::STREAM_ZLIB, int level = Z_DEFAULT_COMPRESSION )
Creates a DeflatingIOS for compressing data passed through and forwarding it to the given output stream.
DeflatingIOS( std::ostream& ostr, int windowBits, int level )
Creates a DeflatingIOS for compressing data passed through and forwarding it to the given output stream.
Please refer to the zlib documentation of deflateInit2() for a description of the windowBits parameter.
DeflatingIOS( std::istream& istr, DeflatingStreamBuf::StreamType type = DeflatingStreamBuf::STREAM_ZLIB, int level = Z_DEFAULT_COMPRESSION )
Creates a DeflatingIOS for compressing data read from the given input stream.
DeflatingIOS( std::istream& istr, int windowBits, int level )
Creates a DeflatingIOS for compressing data read from the given input stream.
Please refer to the zlib documentation of deflateInit2() for a description of the windowBits parameter.