1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;
import org.kde.qt.Qt;
import org.kde.qt.QtSupport;
import org.kde.qt.TQIODevice;
import org.kde.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();
}
|