java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QStringConverterBase
io.qt.core.QStringConverter
- All Implemented Interfaces:
QtObjectInterface
public class QStringConverter extends QStringConverterBase
Base class for encoding and decoding text
Java wrapper for Qt class QStringConverter
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QStringConverter.Encoding
Java wrapper for Qt enum QStringConverter::EncodingNested classes/interfaces inherited from class io.qt.core.QStringConverterBase
QStringConverterBase.Flag, QStringConverterBase.Flags, QStringConverterBase.State
-
Constructor Summary
Constructors Modifier Constructor Description protected
QStringConverter()
protected
QStringConverter(QStringConverter.Encoding encoding, QStringConverterBase.Flag... f)
Overloaded constructor forQStringConverter(io.qt.core.QStringConverter.Encoding, io.qt.core.QStringConverterBase.Flags)
.protected
QStringConverter(QStringConverter.Encoding encoding, QStringConverterBase.Flags f)
protected
QStringConverter(QtObject.QPrivateConstructor p)
Constructor for internal use only.protected
QStringConverter(String name, QStringConverterBase.Flag... f)
Overloaded constructor forQStringConverter(java.lang.String, io.qt.core.QStringConverterBase.Flags)
.protected
QStringConverter(String name, QStringConverterBase.Flags f)
-
Method Summary
Modifier and Type Method Description static Optional<QStringConverter.Encoding>
encodingForData(QByteArrayView data)
Overloaded function forencodingForData(io.qt.core.QByteArrayView, char)
withexpectedFirstCharacter = 0
.static Optional<QStringConverter.Encoding>
encodingForData(QByteArrayView data, char expectedFirstCharacter)
static Optional<QStringConverter.Encoding>
encodingForHtml(QByteArrayView data)
static Optional<QStringConverter.Encoding>
encodingForName(String name)
boolean
hasError()
boolean
isValid()
String
name()
static String
nameForEncoding(QStringConverter.Encoding e)
void
resetState()
protected QStringConverterBase.State
state()
-
Constructor Details
-
QStringConverter
protected QStringConverter() -
QStringConverter
Overloaded constructor for
QStringConverter(io.qt.core.QStringConverter.Encoding, io.qt.core.QStringConverterBase.Flags)
. -
QStringConverter
-
QStringConverter
Overloaded constructor for
QStringConverter(java.lang.String, io.qt.core.QStringConverterBase.Flags)
. -
QStringConverter
-
QStringConverter
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
hasError
-
isValid
-
name
-
resetState
-
encodingForData
Overloaded function for
encodingForData(io.qt.core.QByteArrayView, char)
withexpectedFirstCharacter = 0
. -
encodingForData
public static Optional<QStringConverter.Encoding> encodingForData(QByteArrayView data, char expectedFirstCharacter) -
encodingForHtml
-
encodingForName
-
nameForEncoding
-
state
-