/***************************************************************************
                            QTextStream.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.qt;

import java.util.*;
import java.lang.Error;

public class  QTextStream implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected QTextStream(Class dummy){}

	public native void setEncoding( int arg1);
	public native void setCodec( QTextCodec arg1);
	private native void newQTextStream();
	public QTextStream() {
		newQTextStream();
	}
	private native void newQTextStream( QIODeviceInterface arg1);
	public QTextStream( QIODeviceInterface arg1) {
		newQTextStream( arg1);
	}
	private native void newQTextStream( String arg1, int mode);
	public QTextStream( String arg1, int mode) {
		newQTextStream( arg1, mode);
	}
//	private native void newQTextStream( String arg1, int mode);
//	public QTextStream( String arg1, int mode) {
//		newQTextStream( arg1, mode);
//	}
	private native void newQTextStream( byte[] arg1, int mode);
	public QTextStream( byte[] arg1, int mode) {
		newQTextStream( arg1, mode);
	}
//	private native void newQTextStream( FILE* arg1, int mode);
//	public QTextStream( FILE* arg1, int mode) {
//		newQTextStream( arg1, mode);
//	}
	protected native void finalize() throws InternalError;
	public native QIODeviceInterface device();
	public native void setDevice( QIODeviceInterface arg1);
	public native void unsetDevice();
	public native boolean atEnd();
	public native boolean eof();
	public native QTextStream readRawBytes( String arg1, int len);
	public native QTextStream writeRawBytes( String arg1, int len);
	public native String readLine();
	public native String read();
	public native void skipWhiteSpace();
	public native int flags();
	public native int flags( int f);
	public native int setf( int bits);
	public native int setf( int bits, int mask);
	public native int unsetf( int bits);
	public native void reset();
	public native int width();
	public native int width( int arg1);
	public native int fill();
	public native int fill( int arg1);
	public native int precision();
	public native int precision( int arg1);
	public static final int Locale = 0;
	public static final int Latin1 = 1;
	public static final int Unicode = 2;
	public static final int UnicodeNetworkOrder = 3;
	public static final int UnicodeReverse = 4;
	public static final int RawUnicode = 5;
	public static final int UnicodeUTF8 = 6;
	public static final int skipws = 0x0001;
	public static final int left = 0x0002;
	public static final int right = 0x0004;
	public static final int internal = 0x0008;
	public static final int bin = 0x0010;
	public static final int oct = 0x0020;
	public static final int dec = 0x0040;
	public static final int hex = 0x0080;
	public static final int showbase = 0x0100;
	public static final int showpoint = 0x0200;
	public static final int uppercase = 0x0400;
	public static final int showpos = 0x0800;
	public static final int scientific = 0x1000;
	public static final int fixed = 0x2000;
}
