io.qt.core.QBuffer Maven / Gradle / Ivy
package io.qt.core;
/**
* QIODevice interface for a QByteArray
* Java wrapper for Qt class QBuffer
*/
public class QBuffer extends io.qt.core.QIODevice
{
@io.qt.QtPropertyMember(enabled=false)
private Object strongDataReference = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QBuffer.class);
/**
* Overloaded constructor for {@link #QBuffer(io.qt.core.QByteArray, io.qt.core.QObject)}
* with parent = null
.
*/
public QBuffer(io.qt.core.QByteArray buf) {
this(buf, (io.qt.core.QObject)null);
}
/**
* See QBuffer::QBuffer(QByteArray*,QObject*)
*/
public QBuffer(io.qt.core.QByteArray buf, io.qt.core.QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, buf, parent);
strongDataReference = buf;
}
private native static void initialize_native(QBuffer instance, io.qt.core.QByteArray buf, io.qt.core.QObject parent);
/**
* Overloaded constructor for {@link #QBuffer(io.qt.core.QObject)}
* with parent = null
.
*/
public QBuffer() {
this((io.qt.core.QObject)null);
}
/**
* See QBuffer::QBuffer(QObject*)
*/
public QBuffer(io.qt.core.QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QBuffer instance, io.qt.core.QObject parent);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QByteArray buffer(){
return buffer_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QByteArray buffer_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QByteArray data(){
return data_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QByteArray data_native_constfct(long __this__nativeId);
/**
* See QBuffer::setBuffer(QByteArray*)
*/
@io.qt.QtUninvokable
public final void setBuffer(io.qt.core.QByteArray a){
setBuffer_native_QByteArray_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), a);
strongDataReference = a;
}
@io.qt.QtUninvokable
private native void setBuffer_native_QByteArray_ptr(long __this__nativeId, io.qt.core.QByteArray a);
/**
* See QBuffer::setData(QByteArray)
*/
@io.qt.QtUninvokable
public final void setData(io.qt.core.QByteArray data){
setData_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data));
}
@io.qt.QtUninvokable
private native void setData_native_cref_QByteArray(long __this__nativeId, long data);
@io.qt.QtUninvokable
public final void setData(byte[] data){
setData_native_const_char_ptr_int(QtJambi_LibraryUtilities.internal.nativeId(this), data);
}
@io.qt.QtUninvokable
private native void setData_native_const_char_ptr_int(long __this__nativeId, byte[] data);
/**
*
*/
@io.qt.QtUninvokable
public boolean atEnd(){
return atEnd_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean atEnd_native_constfct(long __this__nativeId);
/**
* See QIODevice::canReadLine()const
*/
@io.qt.QtUninvokable
public boolean canReadLine(){
return canReadLine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean canReadLine_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public void close(){
close_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void close_native(long __this__nativeId);
/**
* See QObject::connectNotify(QMetaMethod)
*/
@io.qt.QtUninvokable
protected void connectNotify(io.qt.core.QMetaMethod arg__1){
connectNotify_native_cref_QMetaMethod(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void connectNotify_native_cref_QMetaMethod(long __this__nativeId, long arg__1);
/**
* See QObject::disconnectNotify(QMetaMethod)
*/
@io.qt.QtUninvokable
protected void disconnectNotify(io.qt.core.QMetaMethod arg__1){
disconnectNotify_native_cref_QMetaMethod(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void disconnectNotify_native_cref_QMetaMethod(long __this__nativeId, long arg__1);
/**
*
*/
@io.qt.QtUninvokable
public boolean open(io.qt.core.QIODeviceBase.OpenMode openMode){
return open_native_QFlags_QIODeviceBase_OpenModeFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), openMode.value());
}
@io.qt.QtUninvokable
private native boolean open_native_QFlags_QIODeviceBase_OpenModeFlag_(long __this__nativeId, int openMode);
/**
*
*/
@io.qt.QtUninvokable
public long pos(){
return pos_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native long pos_native_constfct(long __this__nativeId);
/**
* See QIODevice::readData(char*,qint64)
*/
@io.qt.QtUninvokable
protected int readData(byte[] data){
return readData_native_char_ptr_long_long(QtJambi_LibraryUtilities.internal.nativeId(this), data);
}
@io.qt.QtUninvokable
private native int readData_native_char_ptr_long_long(long __this__nativeId, byte[] data);
/**
*
*/
@io.qt.QtUninvokable
public boolean seek(long off){
return seek_native_long_long(QtJambi_LibraryUtilities.internal.nativeId(this), off);
}
@io.qt.QtUninvokable
private native boolean seek_native_long_long(long __this__nativeId, long off);
/**
*
*/
@io.qt.QtUninvokable
public long size(){
return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native long size_native_constfct(long __this__nativeId);
/**
* See QIODevice::writeData(const char*,qint64)
*/
@io.qt.QtUninvokable
protected int writeData(byte[] data){
return writeData_native_const_char_ptr_long_long(QtJambi_LibraryUtilities.internal.nativeId(this), data);
}
@io.qt.QtUninvokable
private native int writeData_native_const_char_ptr_long_long(long __this__nativeId, byte[] data);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QBuffer(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
*/
@io.qt.NativeAccess
protected QBuffer(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QBuffer instance, QDeclarativeConstructor constructor);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy