class Poco::DeflatingInputStream

Overview

This stream compresses all data passing through it using zlib’s deflate algorithm. More…

#include <DeflatingStream.h>

class DeflatingInputStream:
    public istream,
    public Poco::DeflatingIOS
{
public:
    // construction

    DeflatingInputStream(
        std::istream& istr,
        DeflatingStreamBuf::StreamType type = DeflatingStreamBuf::STREAM_ZLIB,
        int level = Z_DEFAULT_COMPRESSION
        );

    DeflatingInputStream(
        std::istream& istr,
        int windowBits,
        int level
        );
};

Inherited Members

public:
    // methods

    DeflatingStreamBuf*
    rdbuf();

protected:
    // fields

    DeflatingStreamBuf _buf;

Detailed Documentation

This stream compresses all data passing through it using zlib’s deflate algorithm.

Construction

DeflatingInputStream(
    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.

DeflatingInputStream(
    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.