io.qt.xml.QXmlInputSource Maven / Gradle / Ivy
Show all versions of qtjambi-xml Show documentation
package io.qt.xml;
import io.qt.*;
/**
* The input data for the QXmlReader subclasses
* Java wrapper for Qt class QXmlInputSource
*/
@Deprecated
public class QXmlInputSource extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QXmlInputSource:: QXmlInputSource()
*/
public QXmlInputSource(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QXmlInputSource instance);
/**
* See QXmlInputSource:: QXmlInputSource(QIODevice*)
*/
public QXmlInputSource(io.qt.core.@Nullable QIODevice dev){
super((QPrivateConstructor)null);
initialize_native(this, dev);
}
private native static void initialize_native(QXmlInputSource instance, io.qt.core.QIODevice dev);
/**
* See QXmlInputSource:: QXmlInputSource(QXmlInputSource)
*/
public QXmlInputSource(io.qt.xml.@StrictNonNull QXmlInputSource other){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
initialize_native(this, other);
}
private native static void initialize_native(QXmlInputSource instance, io.qt.xml.QXmlInputSource other);
/**
* See QXmlInputSource:: data()const
*/
@QtUninvokable
public java.lang.@NonNull String data(){
return data_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String data_native_constfct(long __this__nativeId);
/**
* See QXmlInputSource:: fetchData()
*/
@QtUninvokable
public void fetchData(){
fetchData_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void fetchData_native(long __this__nativeId);
/**
* See QXmlInputSource:: fromRawData(QByteArray, bool)
*/
@QtUninvokable
protected java.lang.@NonNull String fromRawData(io.qt.core.@NonNull QByteArray data, boolean beginning){
return fromRawData_native_cref_QByteArray_bool(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data), beginning);
}
@QtUninvokable
private native java.lang.String fromRawData_native_cref_QByteArray_bool(long __this__nativeId, long data, boolean beginning);
/**
*
*/
@QtUninvokable
public char next(){
return next_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native char next_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
public void reset(){
reset_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void reset_native(long __this__nativeId);
/**
* See QXmlInputSource:: setData(QByteArray)
*/
@QtUninvokable
public void setData(io.qt.core.@NonNull QByteArray dat){
setData_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(dat));
}
@QtUninvokable
private native void setData_native_cref_QByteArray(long __this__nativeId, long dat);
/**
* See QXmlInputSource:: setData(QString)
*/
@QtUninvokable
public void setData(java.lang.@NonNull String dat){
setData_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), dat);
}
@QtUninvokable
private native void setData_native_cref_QString(long __this__nativeId, java.lang.String dat);
/**
* See QXmlInputSource:: EndOfData
*/
private native static short EndOfData();
/**
* See QXmlInputSource:: EndOfData
*/
public static final short EndOfData = EndOfData();
/**
* See QXmlInputSource:: EndOfDocument
*/
private native static short EndOfDocument();
/**
* See QXmlInputSource:: EndOfDocument
*/
public static final short EndOfDocument = EndOfDocument();
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QXmlInputSource(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QXmlInputSource:: QXmlInputSource(QXmlInputSource)
*/
@QtUninvokable
@Override
public QXmlInputSource clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QXmlInputSource clone_native(long __this_nativeId);
/**
* Overloaded function for {@link #fromRawData(io.qt.core.QByteArray, boolean)}
* with beginning = false
.
*/
@QtUninvokable
protected final java.lang.@NonNull String fromRawData(io.qt.core.@NonNull QByteArray data) {
return fromRawData(data, (boolean)false);
}
/**
* Overloaded function for {@link #fromRawData(byte[], boolean)}
* with beginning = false
.
*/
@QtUninvokable
protected final java.lang.@NonNull String fromRawData(byte @NonNull[] data) {
return fromRawData(data, (boolean)false);
}
/**
* Overloaded function for {@link #fromRawData(io.qt.core.QByteArray, boolean)}.
*/
@QtUninvokable
protected final java.lang.@NonNull String fromRawData(byte @NonNull[] data, boolean beginning) {
return fromRawData(new io.qt.core.QByteArray(data), beginning);
}
/**
* Overloaded function for {@link #setData(io.qt.core.QByteArray)}.
*/
@QtUninvokable
public final void setData(byte @NonNull[] dat) {
setData(new io.qt.core.QByteArray(dat));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #EndOfData()} instead.
*/
private static short getEndOfData() {
return EndOfData();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #EndOfDocument()} instead.
*/
private static short getEndOfDocument() {
return EndOfDocument();
}
}