blob: 4ed75176bf4f664c81c01b5a630fe108383b7d99 (
plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
//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.QIODevice;
import org.kde.qt.QIODeviceInterface;
/**
KAr is a class for reading archives in ar format. Writing
is not supported.
@author Laurence Anderson <l.d.anderson@warwick.ac.uk>
@short A class for reading ar archives.
*/
public class KAr extends KArchive {
protected KAr(Class dummy){super((Class) null);}
/**
Creates an instance that operates on the given filename.
@param filename is a local path (e.g. "/home/holger/myfile.ar")
@short Creates an instance that operates on the given filename.
*/
public KAr(String filename) {
super((Class) null);
newKAr(filename);
}
private native void newKAr(String filename);
/**
Creates an instance that operates on the given device.
The device can be compressed (KFilterDev) or not (QFile, etc.).
@param dev the device to read from
@short Creates an instance that operates on the given device.
*/
public KAr(QIODeviceInterface dev) {
super((Class) null);
newKAr(dev);
}
private native void newKAr(QIODeviceInterface dev);
/**
The name of the ar file, as passed to the constructor.
@return the filename. Null if you used the QIODevice constructor
@short The name of the ar file, as passed to the constructor.
*/
public native String fileName();
public native boolean prepareWriting(String name, String user, String group, int size);
public native boolean doneWriting(int size);
public native boolean writeDir(String name, String user, String group);
/**
Opens the archive for reading.
Parses the directory listing of the archive
and creates the KArchiveDirectory/KArchiveFile entries.
@short Opens the archive for reading.
*/
protected native boolean openArchive(int mode);
protected native boolean closeArchive();
/** 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();
}
|