//Auto-generated by kalyptus. DO NOT EDIT.
#include <qstring.h>
#include <qtextstream.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QTextStream.h>

class QTextStreamJBridge : public QTextStream
{
public:
	QTextStreamJBridge() : QTextStream() {};
	QTextStreamJBridge(QIODevice* arg1) : QTextStream(arg1) {};
	QTextStreamJBridge(QString* arg1,int arg2) : QTextStream(arg1,arg2) {};
	QTextStreamJBridge(QByteArray arg1,int arg2) : QTextStream(arg1,arg2) {};
	~QTextStreamJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextStream_atEnd(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QTextStream*) QtSupport::getQt(env, obj))->atEnd();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_codec(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QTextStream*) QtSupport::getQt(env, obj))->codec(), "org.kde.qt.QTextCodec");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_device(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QTextStream*) QtSupport::getQt(env, obj))->device(), "org.kde.qt.QIODeviceInterface");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextStream_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QTextStream_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextStream_eof(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QTextStream*) QtSupport::getQt(env, obj))->eof();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextStream_fill__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTextStream*) QtSupport::getQt(env, obj))->fill();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextStream_fill__I(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((QTextStream*) QtSupport::getQt(env, obj))->fill((int) arg1);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextStream_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (QTextStream*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextStream_flags__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTextStream*) QtSupport::getQt(env, obj))->flags();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextStream_flags__I(JNIEnv* env, jobject obj, jint f)
{
	jint xret = (jint) ((QTextStream*) QtSupport::getQt(env, obj))->flags((int) f);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTextStream_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextStream_newQTextStream__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QTextStreamJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextStream_newQTextStream__Ljava_lang_StringBuffer_2I(JNIEnv* env, jobject obj, jobject arg1, jint mode)
{
static QString* _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QTextStreamJBridge((QString*) QtSupport::toQStringFromStringBuffer(env, arg1, &_qstring_arg1), (int) mode));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	QtSupport::fromQStringToStringBuffer(env, _qstring_arg1, arg1);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextStream_newQTextStream__Lorg_kde_qt_QIODeviceInterface_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QTextStreamJBridge((QIODevice*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextStream_newQTextStream___3BI(JNIEnv* env, jobject obj, jbyteArray arg1, jint mode)
{
static QByteArray* _qbyteArray_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QTextStreamJBridge((QByteArray)*(QByteArray*) QtSupport::toQByteArray(env, arg1, &_qbyteArray_arg1), (int) mode));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_op_1read__C(JNIEnv* env, jobject obj, jchar arg1)
{
static QChar* _qchar_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->operator>>((QChar&)*(QChar*) QtSupport::toQChar(env, arg1, &_qchar_arg1)), "org.kde.qt.QTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_op_1read__D(JNIEnv* env, jobject obj, jdouble arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->operator>>((double&) arg1), "org.kde.qt.QTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_op_1read__F(JNIEnv* env, jobject obj, jfloat arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->operator>>((float&) arg1), "org.kde.qt.QTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_op_1read__I(JNIEnv* env, jobject obj, jint arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->operator>>((unsigned int&) arg1), "org.kde.qt.QTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_op_1read__J(JNIEnv* env, jobject obj, jlong arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->operator>>((unsigned long&) arg1), "org.kde.qt.QTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_op_1read__Ljava_lang_StringBuffer_2(JNIEnv* env, jobject obj, jobject arg1)
{
static QString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->operator>>((QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, arg1, &_qstring_arg1)), "org.kde.qt.QTextStream");
	QtSupport::fromQStringToStringBuffer(env, _qstring_arg1, arg1);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_op_1read__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static QCString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->operator>>((char*) QtSupport::toCharString(env, arg1, &_qstring_arg1)), "org.kde.qt.QTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_op_1read__S(JNIEnv* env, jobject obj, jshort arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->operator>>((unsigned short&) arg1), "org.kde.qt.QTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_op_1write__C(JNIEnv* env, jobject obj, jchar arg1)
{
static QChar* _qchar_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->operator<<((QChar)*(QChar*) QtSupport::toQChar(env, arg1, &_qchar_arg1)), "org.kde.qt.QTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_op_1write__D(JNIEnv* env, jobject obj, jdouble arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->operator<<((double) arg1), "org.kde.qt.QTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_op_1write__F(JNIEnv* env, jobject obj, jfloat arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->operator<<((float) arg1), "org.kde.qt.QTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_op_1write__I(JNIEnv* env, jobject obj, jint arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->operator<<((unsigned) arg1), "org.kde.qt.QTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_op_1write__J(JNIEnv* env, jobject obj, jlong arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->operator<<((long) arg1), "org.kde.qt.QTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_op_1write__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static QCString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->operator<<((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1)), "org.kde.qt.QTextStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_op_1write__S(JNIEnv* env, jobject obj, jshort arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->operator<<((short) arg1), "org.kde.qt.QTextStream");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextStream_precision__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTextStream*) QtSupport::getQt(env, obj))->precision();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextStream_precision__I(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((QTextStream*) QtSupport::getQt(env, obj))->precision((int) arg1);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QTextStream_readLine(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QTextStream*) QtSupport::getQt(env, obj))->readLine();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_readRawBytes(JNIEnv* env, jobject obj, jstring arg1, jint len)
{
static QCString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->readRawBytes((char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (uint) len), "org.kde.qt.QTextStream");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QTextStream_read(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QTextStream*) QtSupport::getQt(env, obj))->read();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextStream_reset(JNIEnv* env, jobject obj)
{
	((QTextStream*) QtSupport::getQt(env, obj))->reset();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextStream_setCodec(JNIEnv* env, jobject obj, jobject arg1)
{
	((QTextStream*) QtSupport::getQt(env, obj))->setCodec((QTextCodec*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextStream_setDevice(JNIEnv* env, jobject obj, jobject arg1)
{
	((QTextStream*) QtSupport::getQt(env, obj))->setDevice((QIODevice*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextStream_setEncoding(JNIEnv* env, jobject obj, jint arg1)
{
	((QTextStream*) QtSupport::getQt(env, obj))->setEncoding((QTextStream::Encoding) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextStream_setf__I(JNIEnv* env, jobject obj, jint bits)
{
	jint xret = (jint) ((QTextStream*) QtSupport::getQt(env, obj))->setf((int) bits);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextStream_setf__II(JNIEnv* env, jobject obj, jint bits, jint mask)
{
	jint xret = (jint) ((QTextStream*) QtSupport::getQt(env, obj))->setf((int) bits, (int) mask);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextStream_skipWhiteSpace(JNIEnv* env, jobject obj)
{
	((QTextStream*) QtSupport::getQt(env, obj))->skipWhiteSpace();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTextStream_unsetDevice(JNIEnv* env, jobject obj)
{
	((QTextStream*) QtSupport::getQt(env, obj))->unsetDevice();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextStream_unsetf(JNIEnv* env, jobject obj, jint bits)
{
	jint xret = (jint) ((QTextStream*) QtSupport::getQt(env, obj))->unsetf((int) bits);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextStream_width__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QTextStream*) QtSupport::getQt(env, obj))->width();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTextStream_width__I(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((QTextStream*) QtSupport::getQt(env, obj))->width((int) arg1);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTextStream_writeRawBytes(JNIEnv* env, jobject obj, jstring arg1, jint len)
{
static QCString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QTextStream *) &((QTextStream*) QtSupport::getQt(env, obj))->writeRawBytes((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (uint) len), "org.kde.qt.QTextStream");
	return xret;
}

