summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/trinitydesktop/qt/TQFile.java
blob: 67201c05074227790a7933437ebd2a8b3030f137 (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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.qt;

import org.trinitydesktop.qt.Qt;

public class TQFile extends TQIODevice  {
	protected TQFile(Class dummy){super((Class) null);}
	public TQFile() {
		super((Class) null);
		newTQFile();
	}
	private native void newTQFile();
	public TQFile(String name) {
		super((Class) null);
		newTQFile(name);
	}
	private native void newTQFile(String name);
	public native String name();
	public native void setName(String name);
	public native boolean exists();
	public native boolean remove();
	public native boolean open(int arg1);
	public native boolean open(int arg1, int arg2);
	public native void close();
	public native void flush();
	public native long size();
	public native long at();
	public native boolean at(long arg1);
	public native boolean atEnd();
	public native long readBlock(StringBuffer data, long len);
	public native long writeBlock(String data, long len);
	public native long writeBlock(byte[] data);
	public native long readLine(String data, long maxlen);
	public native long readLine(StringBuffer arg1, long maxlen);
	public native int getch();
	public native int putch(int arg1);
	public native int ungetch(int arg1);
	public native int handle();
	public native String errorString();
	public static native String encodeName(String fileName);
	public static native String decodeName(String localFileName);
	public static native boolean exists(String fileName);
	public static native boolean remove(String fileName);
	protected native void setErrorString(String arg1);
	/** 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();
}