Library: Foundation
Package: Streams
Header: Poco/DeflatingStream.h
The base class for DeflatingOutputStream and DeflatingInputStream.
This class is needed to ensure the correct initialization order of the stream buffer and base classes.
Direct Base Classes: std::ios
All Base Classes: std::ios
Known Derived Classes: DeflatingOutputStream, DeflatingInputStream
Member Functions: rdbuf
DeflatingIOS(
std::ostream & ostr,
DeflatingStreamBuf::StreamType type = DeflatingStreamBuf::STREAM_ZLIB,
int level = (- 1)
);
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 = (- 1)
);
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.
~DeflatingIOS();
Destroys the DeflatingIOS.
DeflatingStreamBuf * rdbuf();
Returns a pointer to the underlying stream buffer.
DeflatingStreamBuf _buf;