io.qt.core.QStringDecoder Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* State-based decoder for text
* Java wrapper for Qt class QStringDecoder
*/
public class QStringDecoder extends io.qt.core.QStringConverter
{
/**
* See QStringDecoder:: QStringDecoder()
*/
public QStringDecoder(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QStringDecoder instance);
/**
* See QStringDecoder:: QStringDecoder(QStringConverter::Encoding, QStringConverterBase::Flags)
*/
public QStringDecoder(io.qt.core.QStringConverter.@NonNull Encoding encoding, io.qt.core.QStringConverterBase.@NonNull Flags flags){
super((QPrivateConstructor)null);
initialize_native(this, encoding, flags);
}
private native static void initialize_native(QStringDecoder instance, io.qt.core.QStringConverter.Encoding encoding, io.qt.core.QStringConverterBase.Flags flags);
/**
* See QStringDecoder:: QStringDecoder(const char*, QStringConverterBase::Flags)
*/
public QStringDecoder(java.lang.@Nullable String name, io.qt.core.QStringConverterBase.@NonNull Flags f){
super((QPrivateConstructor)null);
initialize_native(this, name, f);
}
private native static void initialize_native(QStringDecoder instance, java.lang.String name, io.qt.core.QStringConverterBase.Flags f);
/**
* See QStringDecoder:: appendToBuffer(QChar*, QByteArrayView)
*/
@QtUninvokable
public final void appendToBuffer(java.nio.@Nullable CharBuffer out, io.qt.core.@NonNull QByteArrayView ba){
appendToBuffer_native_QChar_ptr_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), out, QtJambi_LibraryUtilities.internal.checkedNativeId(ba));
}
@QtUninvokable
private native void appendToBuffer_native_QChar_ptr_QByteArrayView(long __this__nativeId, java.nio.CharBuffer out, long ba);
/**
* See QStringDecoder:: decode(QByteArrayView)
*/
@QtUninvokable
public final java.lang.@NonNull String decode(io.qt.core.@NonNull QByteArrayView ba){
return decode_native_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ba));
}
@QtUninvokable
private native java.lang.@NonNull String decode_native_QByteArrayView(long __this__nativeId, long ba);
/**
* See QStringDecoder:: decode(QByteArray)
*/
@QtUninvokable
public final java.lang.@NonNull String decode(io.qt.core.@NonNull QByteArray ba){
return decode_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ba));
}
@QtUninvokable
private native java.lang.@NonNull String decode_native_cref_QByteArray(long __this__nativeId, long ba);
/**
* See QStringDecoder:: operator()(QByteArrayView)
*/
@QtUninvokable
public final java.lang.@NonNull String invoke(io.qt.core.@NonNull QByteArrayView ba){
return invoke_native_QByteArrayView(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ba));
}
@QtUninvokable
private native java.lang.@NonNull String invoke_native_QByteArrayView(long __this__nativeId, long ba);
/**
* See QStringDecoder:: operator()(QByteArray)
*/
@QtUninvokable
public final java.lang.@NonNull String invoke(io.qt.core.@NonNull QByteArray ba){
return invoke_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ba));
}
@QtUninvokable
private native java.lang.@NonNull String invoke_native_cref_QByteArray(long __this__nativeId, long ba);
/**
* See QStringDecoder:: requiredSpace(qsizetype)const
*/
@QtUninvokable
public final long requiredSpace(long inputLength){
return requiredSpace_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), inputLength);
}
@QtUninvokable
private native long requiredSpace_native_qsizetype_constfct(long __this__nativeId, long inputLength);
/**
* See QStringDecoder:: decoderForHtml(QByteArrayView)
*/
public static io.qt.core.@NonNull QStringDecoder decoderForHtml(io.qt.core.@NonNull QByteArrayView data){
return decoderForHtml_native_QByteArrayView(QtJambi_LibraryUtilities.internal.checkedNativeId(data));
}
private native static io.qt.core.QStringDecoder decoderForHtml_native_QByteArrayView(long data);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QStringDecoder(QPrivateConstructor p) { super(p); }
/**
* Overloaded constructor for {@link #QStringDecoder(io.qt.core.QStringConverter.Encoding, io.qt.core.QStringConverterBase.Flags)}
* with flags = new io.qt.core.QStringConverterBase.Flags(0)
.
*/
public QStringDecoder(io.qt.core.QStringConverter.@NonNull Encoding encoding) {
this(encoding, new io.qt.core.QStringConverterBase.Flags(0));
}
/**
* Overloaded constructor for {@link #QStringDecoder(io.qt.core.QStringConverter.Encoding, io.qt.core.QStringConverterBase.Flags)}.
*/
public QStringDecoder(io.qt.core.QStringConverter.@NonNull Encoding encoding, io.qt.core.QStringConverterBase.@NonNull Flag @NonNull... flags) {
this(encoding, new io.qt.core.QStringConverterBase.Flags(flags));
}
/**
* Overloaded constructor for {@link #QStringDecoder(java.lang.String, io.qt.core.QStringConverterBase.Flags)}
* with f = new io.qt.core.QStringConverterBase.Flags(0)
.
*/
public QStringDecoder(java.lang.@Nullable String name) {
this(name, new io.qt.core.QStringConverterBase.Flags(0));
}
/**
* Overloaded constructor for {@link #QStringDecoder(java.lang.String, io.qt.core.QStringConverterBase.Flags)}.
*/
public QStringDecoder(java.lang.@Nullable String name, io.qt.core.QStringConverterBase.@NonNull Flag @NonNull... f) {
this(name, new io.qt.core.QStringConverterBase.Flags(f));
}
/**
* Overloaded function for {@link #appendToBuffer(java.nio.CharBuffer, io.qt.core.QByteArrayView)}.
*/
@QtUninvokable
public final void appendToBuffer(java.nio.@Nullable CharBuffer out, io.qt.core.@NonNull QByteArray ba) {
appendToBuffer(out, new io.qt.core.QByteArrayView(ba));
}
/**
* Overloaded function for {@link #appendToBuffer(java.nio.CharBuffer, io.qt.core.QByteArrayView)}.
*/
@QtUninvokable
public final void appendToBuffer(java.nio.@Nullable CharBuffer out, java.nio.@NonNull ByteBuffer ba) {
appendToBuffer(out, new io.qt.core.QByteArrayView(ba));
}
/**
* Overloaded function for {@link #appendToBuffer(java.nio.CharBuffer, io.qt.core.QByteArrayView)}.
*/
@QtUninvokable
public final void appendToBuffer(java.nio.@Nullable CharBuffer out, byte @NonNull[] ba) {
appendToBuffer(out, new io.qt.core.QByteArrayView(ba));
}
/**
* Overloaded function for {@link #decode(io.qt.core.QByteArrayView)}.
*/
@QtUninvokable
public final java.lang.@NonNull String decode(java.nio.@NonNull ByteBuffer ba) {
return decode(new io.qt.core.QByteArrayView(ba));
}
/**
* Overloaded function for {@link #decode(io.qt.core.QByteArrayView)}.
*/
@QtUninvokable
public final java.lang.@NonNull String decode(byte @NonNull[] ba) {
return decode(new io.qt.core.QByteArrayView(ba));
}
/**
* Overloaded function for {@link #invoke(io.qt.core.QByteArrayView)}.
*/
@QtUninvokable
public final java.lang.@NonNull String invoke(java.nio.@NonNull ByteBuffer ba) {
return invoke(new io.qt.core.QByteArrayView(ba));
}
/**
* Overloaded function for {@link #invoke(io.qt.core.QByteArrayView)}.
*/
@QtUninvokable
public final java.lang.@NonNull String invoke(byte @NonNull[] ba) {
return invoke(new io.qt.core.QByteArrayView(ba));
}
/**
* Overloaded function for {@link #decoderForHtml(io.qt.core.QByteArrayView)}.
*/
public static io.qt.core.@NonNull QStringDecoder decoderForHtml(io.qt.core.@NonNull QByteArray data) {
return decoderForHtml(new io.qt.core.QByteArrayView(data));
}
/**
* Overloaded function for {@link #decoderForHtml(io.qt.core.QByteArrayView)}.
*/
public static io.qt.core.@NonNull QStringDecoder decoderForHtml(java.nio.@NonNull ByteBuffer data) {
return decoderForHtml(new io.qt.core.QByteArrayView(data));
}
/**
* Overloaded function for {@link #decoderForHtml(io.qt.core.QByteArrayView)}.
*/
public static io.qt.core.@NonNull QStringDecoder decoderForHtml(byte @NonNull[] data) {
return decoderForHtml(new io.qt.core.QByteArrayView(data));
}
}