//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.qt;

import org.trinitydesktop.qt.Qt;

public class TQBuffer extends TQIODevice  {
	protected TQBuffer(Class dummy){super((Class) null);}
	public TQBuffer() {
		super((Class) null);
		newTQBuffer();
	}
	private native void newTQBuffer();
	public TQBuffer(byte[] arg1) {
		super((Class) null);
		newTQBuffer(arg1);
	}
	private native void newTQBuffer(byte[] arg1);
	public native byte[] buffer();
	public native boolean setBuffer(byte[] arg1);
	public native boolean open(int arg1);
	public native void close();
	public native void flush();
	public native long size();
	public native long at();
	public native boolean at(long arg1);
	public native long readBlock(StringBuffer p, long arg2);
	public native long writeBlock(String p, long arg2);
	public native long writeBlock(byte[] data);
	public native long readLine(String p, long arg2);
	public native int getch();
	public native int putch(int arg1);
	public native int ungetch(int 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();
}
