class KTar |
|
A class for reading / writing (optionally compressed) tar archives.
KTar allows you to read and write tar archives, including those that are compressed using gzip or bzip2.
Author Torben Weis |
|
Creates an instance that operates on the given filename
using the compression filter associated to given mimetype.
filename - is a local path (e.g. "/home/weis/myfile.tgz") mimetype - "application/x-gzip" or "application/x-bzip" Do not use application/x-compressed-tar or similar - you only need to specify the compression layer ! If the mimetype is omitted, it will be determined from the filename. |
|
Creates an instance that operates on the given device.
The device can be compressed (KFilterDev) or not (QFile, etc.).
Do not assume that giving a QFile here will decompress the file,
in case it's compressed!
dev - the device to read from. If the source is compressed, the QIODevice must take care of decompression |
|
|
|
|
|
Reimplemented from KArchive |
|
Reimplemented from KArchive |
|
Reimplemented from KArchive |
|
Reimplemented from KArchive |
|
Opens the archive for reading.
Parses the directory listing of the archive
and creates the KArchiveDirectory/KArchiveFile entries.
mode - the mode of the file |
|
Special function for setting the "original file name" in the gzip header,
when writing a tar.gz file. It appears when using in the "file" command,
for instance. Should only be called if the underlying device is a KFilterDev!
fileName - the original file name |
|