summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KAr.java
blob: 5f8e9c0b5519b6657e45e3ce0c01cd8b1ae16985 (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.TQIODevice;
import org.kde.qt.TQIODeviceInterface;

/**

 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 (TQFile, etc.).
			@param dev the device to read from
		     		@short    Creates an instance that operates on the given device.
	*/
	public KAr(TQIODeviceInterface dev) {
		super((Class) null);
		newKAr(dev);
	}
	private native void newKAr(TQIODeviceInterface dev);
	/**	
		 The name of the ar file, as passed to the constructor.
				@return the filename. Null if you used the TQIODevice 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();
}