# class KFilterDev | A class for reading and writing compressed data onto a device (e. More...
Definition | `#include <kfilterdev.h>`
Inherits | QIODevice (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KFilterDev ( KFilterBase * filter )
- virtual ~KFilterDev ()
- virtual bool open ( int mode )
- virtual void close ()
- virtual void flush ()
- virtual uint size () const
- virtual int at () const
- virtual bool at ( int )
- virtual bool atEnd () const
- virtual int readBlock ( char *data, uint maxlen )
- virtual int writeBlock ( const char *data, uint len )
- virtual int getch ()
- virtual int putch ( int )
- virtual int ungetch ( int )

#### Public Static Methods

- static QIODevice* createFilterDevice (KFilterBase* base, QFile* file)

## Detailed Description

A class for reading and writing compressed data onto a device (e.g. file, but other usages are possible, like a buffer or a socket)

KFilterDev ( KFilterBase * filter ) | ### KFilterDev

Create a KFilterDev for a given filter (e.g. gzip, bzip2 etc.)

~KFilterDev () | ### ~KFilterDev

[virtual]

bool open ( int mode ) | ### open

[virtual]

Reimplemented from QIODevice.

void close () | ### close

[virtual]

Reimplemented from QIODevice.

void flush () | ### flush

[virtual]

Reimplemented from QIODevice.

uint size () | ### size

[const virtual]

Reimplemented from QIODevice.

int at () | ### at

[const virtual]

Reimplemented from QIODevice.

bool at ( int ) | ### at

[virtual]

That one can be quite slow, when going back. Use with care.

Reimplemented from QIODevice.

bool atEnd () | ### atEnd

[const virtual]

Reimplemented from QIODevice.

int readBlock ( char *data, uint maxlen ) | ### readBlock

[virtual]

Reimplemented from QIODevice.

int writeBlock ( const char *data, uint len ) | ### writeBlock

[virtual]

Reimplemented from QIODevice.

int getch () | ### getch

[virtual]

Reimplemented from QIODevice.

int putch ( int ) | ### putch

[virtual]

Reimplemented from QIODevice.

int ungetch ( int ) | ### ungetch

[virtual]

Reimplemented from QIODevice.

QIODevice* createFilterDevice (KFilterBase* base, QFile* file) | ### createFilterDevice

[static]

Call this to create the appropriate filter device for `base` working on `file` . The returned QIODevice has to be deleted after using.

- Author: David Faure <faure@kde.org>
- Generated: root@sparc.ports.openbsd.org on Wed May 2 09:40:40 2001, using kdoc 2.0a53.