mirror of
https://github.com/pocoproject/poco.git
synced 2025-06-27 06:45:36 +02:00
trunk/branch integration: documentation
This commit is contained in:
parent
7f54dc2b35
commit
1e58e9e2a0
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// InflatingStream.h
|
// InflatingStream.h
|
||||||
//
|
//
|
||||||
// $Id: //poco/svn/Foundation/include/Poco/InflatingStream.h#2 $
|
// $Id: //poco/1.4/Foundation/include/Poco/InflatingStream.h#2 $
|
||||||
//
|
//
|
||||||
// Library: Foundation
|
// Library: Foundation
|
||||||
// Package: Streams
|
// Package: Streams
|
||||||
@ -44,7 +44,11 @@
|
|||||||
#include "Poco/BufferedStreamBuf.h"
|
#include "Poco/BufferedStreamBuf.h"
|
||||||
#include <istream>
|
#include <istream>
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
#if defined(POCO_UNBUNDLED)
|
||||||
|
#include <zlib.h>
|
||||||
|
#else
|
||||||
#include "Poco/zlib.h"
|
#include "Poco/zlib.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
namespace Poco {
|
namespace Poco {
|
||||||
@ -52,7 +56,7 @@ namespace Poco {
|
|||||||
|
|
||||||
class Foundation_API InflatingStreamBuf: public BufferedStreamBuf
|
class Foundation_API InflatingStreamBuf: public BufferedStreamBuf
|
||||||
/// This is the streambuf class used by InflatingInputStream and InflatingOutputStream.
|
/// This is the streambuf class used by InflatingInputStream and InflatingOutputStream.
|
||||||
/// The actual work is delegated to zlib 1.2.1 (see http://www.gzip.org).
|
/// The actual work is delegated to zlib (see http://zlib.net).
|
||||||
/// Both zlib (deflate) streams and gzip streams are supported.
|
/// Both zlib (deflate) streams and gzip streams are supported.
|
||||||
/// Output streams should always call close() to ensure
|
/// Output streams should always call close() to ensure
|
||||||
/// proper completion of decompression.
|
/// proper completion of decompression.
|
||||||
@ -60,9 +64,9 @@ class Foundation_API InflatingStreamBuf: public BufferedStreamBuf
|
|||||||
public:
|
public:
|
||||||
enum StreamType
|
enum StreamType
|
||||||
{
|
{
|
||||||
STREAM_ZLIB,
|
STREAM_ZLIB, /// Expect a zlib header, use Adler-32 checksum.
|
||||||
STREAM_GZIP,
|
STREAM_GZIP, /// Expect a gzip header, use CRC-32 checksum.
|
||||||
STREAM_ZIP // ZIP is handled as STREAM_ZLIB, except that we do not check the ADLER32 value (must be checked by an outside class!)
|
STREAM_ZIP /// STREAM_ZIP is handled as STREAM_ZLIB, except that we do not check the ADLER32 value (must be checked by caller)
|
||||||
};
|
};
|
||||||
|
|
||||||
InflatingStreamBuf(std::istream& istr, StreamType type);
|
InflatingStreamBuf(std::istream& istr, StreamType type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user