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

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

class QDataStreamJBridge : public QDataStream
{
public:
	QDataStreamJBridge() : QDataStream() {};
	QDataStreamJBridge(QIODevice* arg1) : QDataStream(arg1) {};
	QDataStreamJBridge(QByteArray arg1,int arg2) : QDataStream(arg1,arg2) {};
	~QDataStreamJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDataStream_byteOrder(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QDataStream*) QtSupport::getQt(env, obj))->byteOrder();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataStream_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QDataStream_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDataStream_isPrintableData(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QDataStream*) QtSupport::getQt(env, obj))->isPrintableData();
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataStream_newQDataStream___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 QDataStreamJBridge((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_QDataStream_op_1read__C(JNIEnv* env, jobject obj, jchar i)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QDataStream *) &((QDataStream*) QtSupport::getQt(env, obj))->operator>>((Q_INT8&) i), "org.kde.qt.QDataStream");
	return xret;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDataStream_op_1read__I(JNIEnv* env, jobject obj, jint i)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QDataStream *) &((QDataStream*) QtSupport::getQt(env, obj))->operator>>((Q_INT32&) i), "org.kde.qt.QDataStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDataStream_op_1read__J(JNIEnv* env, jobject obj, jlong i)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QDataStream *) &((QDataStream*) QtSupport::getQt(env, obj))->operator>>((Q_LONG&) i), "org.kde.qt.QDataStream");
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDataStream_op_1read__S(JNIEnv* env, jobject obj, jshort i)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QDataStream *) &((QDataStream*) QtSupport::getQt(env, obj))->operator>>((Q_UINT8&) i), "org.kde.qt.QDataStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDataStream_op_1write__C(JNIEnv* env, jobject obj, jchar i)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QDataStream *) &((QDataStream*) QtSupport::getQt(env, obj))->operator<<((Q_INT8) i), "org.kde.qt.QDataStream");
	return xret;
}

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataStream_setByteOrder(JNIEnv* env, jobject obj, jint arg1)
{
	((QDataStream*) QtSupport::getQt(env, obj))->setByteOrder((int) arg1);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataStream_setPrintableData(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QDataStream*) QtSupport::getQt(env, obj))->setPrintableData((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDataStream_setVersion(JNIEnv* env, jobject obj, jint arg1)
{
	((QDataStream*) QtSupport::getQt(env, obj))->setVersion((int) arg1);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDataStream_version(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QDataStream*) QtSupport::getQt(env, obj))->version();
	return xret;
}

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

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

