diff options
Diffstat (limited to 'tdejava/koala/org/trinitydesktop/koala/KZipFileEntry.java')
-rw-r--r-- | tdejava/koala/org/trinitydesktop/koala/KZipFileEntry.java | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tdejava/koala/org/trinitydesktop/koala/KZipFileEntry.java b/tdejava/koala/org/trinitydesktop/koala/KZipFileEntry.java new file mode 100644 index 00000000..07fa00f0 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KZipFileEntry.java @@ -0,0 +1,51 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQIODevice; +import org.trinitydesktop.qt.TQIODeviceInterface; + +/** + + @short + +*/ +public class KZipFileEntry extends KArchiveFile { + protected KZipFileEntry(Class dummy){super((Class) null);} + 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) { + super((Class) null); + newKZipFileEntry(zip,name,access,date,user,group,symlink,path,start,uncompressedSize,encoding,compressedSize); + } + private native void newKZipFileEntry(KZip zip, String name, int access, int date, String user, String group, String symlink, String path, long start, long uncompressedSize, int encoding, long compressedSize); + public native int encoding(); + public native long compressedSize(); + public native void setCompressedSize(long compressedSize); + public native void setHeaderStart(long headerstart); + public native long headerStart(); + public native long crc32(); + public native void setCRC32(long crc32); + public native String path(); + /** + @return the content of this file. + Call data() with care (only once per file), this data isn't cached. + + @short + */ + public native byte[] data(); + /** + This method returns a TQIODevice 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. + @short This method returns a TQIODevice to read the file contents. + */ + public native TQIODeviceInterface device(); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} |