org.kde.koala
public class KFilterBase extends QObject
UNKNOWN: This is the base class for compression filters such as gzip and bzip2.
| Field Summary | |
|---|---|
| static int | END |
| static int | ERROR |
| static int | OK \internal @short \internal |
| Constructor Summary | |
|---|---|
| protected | KFilterBase(Class dummy) |
| Method Summary | |
|---|---|
| String | className() |
| int | compress(boolean finish) \internal @short \internal |
| QIODeviceInterface | device()
Returns the device on which the filter will work. |
| static KFilterBase | findFilterByFileName(String fileName)
Call this to create the appropriate filter for the file
named fileName. |
| static KFilterBase | findFilterByMimeType(String mimeType)
Call this to create the appropriate filter for the mimetype
mimeType. For instance application/x-gzip. |
| int | inBufferAvailable() \internal @short \internal |
| boolean | inBufferEmpty() \internal @short \internal |
| void | init(int mode) \internal @short \internal |
| QMetaObject | metaObject() |
| int | mode() \internal @short \internal |
| int | outBufferAvailable() \internal @short \internal |
| boolean | outBufferFull() \internal @short \internal |
| boolean | readHeader() \internal @short \internal |
| void | reset() \internal @short \internal |
| void | setDevice(QIODeviceInterface dev, boolean autodelete)
Sets the device on which the filter will work |
| void | setDevice(QIODeviceInterface dev) |
| void | setInBuffer(String data, int size) \internal @short \internal |
| void | setOutBuffer(String data, int maxlen) \internal @short \internal |
| void | terminate() \internal @short \internal |
| int | uncompress() \internal @short \internal |
| boolean | writeHeader(String filename) \internal @short \internal |
Returns: the device on which the filter will work
UNKNOWN: Returns the device on which the filter will work.
fileName.Parameters: fileName the name of the file to filter
Returns: the filter for the fileName, or 0 if not found
UNKNOWN: Call this to create the appropriate filter for the file named fileName.
mimeType. For instance application/x-gzip.Parameters: mimeType the mime type of the file to filter
Returns: the filter for the mimeType, or 0 if not found
UNKNOWN: Call this to create the appropriate filter for the mimetype mimeType.
Parameters: dev the device on which the filter will work autodelete if true, dev is deleted when the filter is deleted
UNKNOWN: Sets the device on which the filter will work