/usr/include/wvstreams/wvgzipstream.h is in libwvstreams-dev 4.6.1-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | /* -*- Mode: C++ -*-
* Worldvisions Weaver Software:
* Copyright (C) 1997-2002 Net Integration Technologies, Inc.
*
* A Gzip stream.
*/
#ifndef __WVGZIPSTREAM_H
#define __WVGZIPSTREAM_H
#include "wvgzip.h"
/**
* A stream implementing Gzip compression and decompression.
*
* By default, written data is compressed using WvGzipEncoder::Deflate,
* read data is decompressed using WvGzipEncoder::Inflate.
*
* @see WvGzipEncoder
*/
class WvGzipStream : public WvEncoderStream
{
public:
WvGzipStream(WvStream *_cloned,
WvGzipEncoder::Mode readmode = WvGzipEncoder::Inflate,
WvGzipEncoder::Mode writemode = WvGzipEncoder::Deflate)
: WvEncoderStream(_cloned)
{
readchain.append(new WvGzipEncoder(readmode), true);
writechain.append(new WvGzipEncoder(writemode), true);
}
virtual ~WvGzipStream() { }
public:
const char *wstype() const { return "WvGzipStream"; }
};
#endif /* __WVGZIPSTREAM_H */
|