org.kde.koala
Class KZipFileEntry

java.lang.Object
  extended by org.kde.koala.KArchiveEntry
      extended by org.kde.koala.KArchiveFile
          extended by org.kde.koala.KZipFileEntry
All Implemented Interfaces:
org.kde.qt.QtSupport

public class KZipFileEntry
extends KArchiveFile


Constructor Summary
protected KZipFileEntry(java.lang.Class dummy)
           
  KZipFileEntry(KZip zip, java.lang.String name, int access, int date, java.lang.String user, java.lang.String group, java.lang.String symlink, java.lang.String path, long start, long uncompressedSize, int encoding, long compressedSize)
           
 
Method Summary
 long compressedSize()
           
 long crc32()
           
 byte[] data()
          Returns the data of the file.
 org.kde.qt.QIODeviceInterface device()
          This method returns a QIODevice to read the file contents.
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
 int encoding()
           
protected  void finalize()
          Deletes the wrapped C++ instance
 long headerStart()
           
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
 java.lang.String path()
           
 void setCompressedSize(long compressedSize)
           
 void setCRC32(long crc32)
           
 void setHeaderStart(long headerstart)
           
 
Methods inherited from class org.kde.koala.KArchiveFile
copyTo, isFile, position, setSize, size
 
Methods inherited from class org.kde.koala.KArchiveEntry
archive, date, datetime, group, isDirectory, name, permissions, symlink, user
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KZipFileEntry

protected KZipFileEntry(java.lang.Class dummy)

KZipFileEntry

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

encoding

public int encoding()

compressedSize

public long compressedSize()

setCompressedSize

public void setCompressedSize(long compressedSize)

setHeaderStart

public void setHeaderStart(long headerstart)

headerStart

public long headerStart()

crc32

public long crc32()

setCRC32

public void setCRC32(long crc32)

path

public java.lang.String path()

data

public byte[] data()
Description copied from class: KArchiveFile
Returns the data of the file. Call data() with care (only once per file), this data isn't cached.

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

device

public org.kde.qt.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.

Overrides:
device in class KArchiveFile
Returns:
the QIODevice of the file

finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class KArchiveFile
Throws:
java.lang.InternalError

dispose

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

Overrides:
dispose in class KArchiveFile

isDisposed

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

Overrides:
isDisposed in class KArchiveFile