org.kde.koala

Class KZipFileEntry

public class KZipFileEntry extends KArchiveFile

UNKNOWN:

Constructor Summary
protected KZipFileEntry(Class dummy)
KZipFileEntry(KZip zip, String name, int access, int date, String user, String group, String symlink, String path, long start, long uncompressedSize, int encoding, long compressedSize)
Method Summary
longcompressedSize()
longcrc32()
byte[]data()
QIODeviceInterfacedevice()
This method returns a QIODevice to read the file contents.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
intencoding()
protected voidfinalize()
Deletes the wrapped C++ instance
longheaderStart()
booleanisDisposed()
Has the wrapped C++ instance been deleted?
Stringpath()
voidsetCompressedSize(long compressedSize)
voidsetCRC32(long crc32)
voidsetHeaderStart(long headerstart)

Constructor Detail

KZipFileEntry

protected KZipFileEntry(Class dummy)

KZipFileEntry

public KZipFileEntry(KZip zip, String name, int access, int date, String user, String group, String symlink, String path, long start, long uncompressedSize, int encoding, long compressedSize)

Method Detail

compressedSize

public long compressedSize()

crc32

public long crc32()

data

public byte[] data()

Returns: the content of this file. Call data() with care (only once per file), this data isn't cached.

UNKNOWN:

device

public QIODeviceInterface device()
This method returns a QIODevice to read the file contents. This is obviously for reading only. Note that the ownership of the device is being transferred to the caller, who will have to delete it. The returned device auto-opens (in readonly mode), no need to open it.

UNKNOWN: This method returns a QIODevice to read the file contents.

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

encoding

public int encoding()

finalize

protected void finalize()
Deletes the wrapped C++ instance

headerStart

public long headerStart()

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

path

public String path()

setCompressedSize

public void setCompressedSize(long compressedSize)

setCRC32

public void setCRC32(long crc32)

setHeaderStart

public void setHeaderStart(long headerstart)