io.qt.core.QStringEncoder Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* State-based encoder for text
* Java wrapper for Qt class QStringEncoder
*/
public class QStringEncoder extends io.qt.core.QStringConverter
{
/**
* See QStringEncoder:: QStringEncoder()
*/
public QStringEncoder(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QStringEncoder instance);
/**
* See QStringEncoder:: QStringEncoder(QStringConverter::Encoding, QStringConverterBase::Flags)
*/
public QStringEncoder(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(QStringEncoder instance, io.qt.core.QStringConverter.Encoding encoding, io.qt.core.QStringConverterBase.Flags flags);
/**
* See QStringEncoder:: QStringEncoder(const char*, QStringConverterBase::Flags)
*/
public QStringEncoder(java.lang.@Nullable String name, io.qt.core.QStringConverterBase.@NonNull Flags flags){
super((QPrivateConstructor)null);
initialize_native(this, name, flags);
}
private native static void initialize_native(QStringEncoder instance, java.lang.String name, io.qt.core.QStringConverterBase.Flags flags);
/**
* See QStringEncoder:: appendToBuffer(char*, QStringView)
*/
@QtUninvokable
public final void appendToBuffer(java.nio.@Nullable ByteBuffer out, java.lang.@NonNull String in){
appendToBuffer_native_char_ptr_QStringView(QtJambi_LibraryUtilities.internal.nativeId(this), out, in);
}
@QtUninvokable
private native void appendToBuffer_native_char_ptr_QStringView(long __this__nativeId, java.nio.ByteBuffer out, java.lang.String in);
/**
* See QStringEncoder:: encode(QStringView)
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray encode(java.lang.@NonNull String in){
return encode_native_QStringView(QtJambi_LibraryUtilities.internal.nativeId(this), in);
}
@QtUninvokable
private native io.qt.core.@NonNull QByteArray encode_native_QStringView(long __this__nativeId, java.lang.String in);
/**
* See QStringEncoder:: operator()(QStringView)
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray invoke(java.lang.@NonNull String in){
return invoke_native_QStringView(QtJambi_LibraryUtilities.internal.nativeId(this), in);
}
@QtUninvokable
private native io.qt.core.@NonNull QByteArray invoke_native_QStringView(long __this__nativeId, java.lang.String in);
/**
* See QStringEncoder:: 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);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QStringEncoder(QPrivateConstructor p) { super(p); }
/**
* Overloaded constructor for {@link #QStringEncoder(io.qt.core.QStringConverter.Encoding, io.qt.core.QStringConverterBase.Flags)}
* with flags = new io.qt.core.QStringConverterBase.Flags(0)
.
*/
public QStringEncoder(io.qt.core.QStringConverter.@NonNull Encoding encoding) {
this(encoding, new io.qt.core.QStringConverterBase.Flags(0));
}
/**
* Overloaded constructor for {@link #QStringEncoder(io.qt.core.QStringConverter.Encoding, io.qt.core.QStringConverterBase.Flags)}.
*/
public QStringEncoder(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 #QStringEncoder(java.lang.String, io.qt.core.QStringConverterBase.Flags)}
* with flags = new io.qt.core.QStringConverterBase.Flags(0)
.
*/
public QStringEncoder(java.lang.@Nullable String name) {
this(name, new io.qt.core.QStringConverterBase.Flags(0));
}
/**
* Overloaded constructor for {@link #QStringEncoder(java.lang.String, io.qt.core.QStringConverterBase.Flags)}.
*/
public QStringEncoder(java.lang.@Nullable String name, io.qt.core.QStringConverterBase.@NonNull Flag @NonNull... flags) {
this(name, new io.qt.core.QStringConverterBase.Flags(flags));
}
}