java.lang.Object
io.qt.QtObject
io.qt.core.QStringConverterBase
io.qt.core.QStringConverter
- All Implemented Interfaces:
QtObjectInterface
Base class for encoding and decoding text
Java wrapper for Qt class QStringConverter
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.qt.core.QStringConverterBase
QStringConverterBase.Flag, QStringConverterBase.Flags, QStringConverterBase.State
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SeeQStringConverter::
QStringConverter() protected
QStringConverter
(QStringConverter.Encoding encoding, QStringConverterBase.Flag ... f) Overloaded constructor forQStringConverter(io.qt.core.QStringConverter.Encoding, io.qt.core.QStringConverterBase.Flags)
.protected
SeeQStringConverter::
QStringConverter(QStringConverter::Encoding, QStringConverterBase::Flags) protected
QStringConverter
(String name, QStringConverterBase.Flag ... f) Overloaded constructor forQStringConverter(java.lang.String, io.qt.core.QStringConverterBase.Flags)
.protected
SeeQStringConverter::
QStringConverter(const char*, QStringConverterBase::Flags) -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<QStringConverter.Encoding>
encodingForData
(byte[] data) static Optional<QStringConverter.Encoding>
encodingForData
(byte[] data, char expectedFirstCharacter) static Optional<QStringConverter.Encoding>
Overloaded function forencodingForData(io.qt.core.QByteArrayView, char)
withexpectedFirstCharacter = 0
.static Optional<QStringConverter.Encoding>
encodingForData
(QByteArrayView data, char expectedFirstCharacter) static Optional<QStringConverter.Encoding>
encodingForData
(QByteArray data) static Optional<QStringConverter.Encoding>
encodingForData
(QByteArray data, char expectedFirstCharacter) static Optional<QStringConverter.Encoding>
encodingForData
(String data) static Optional<QStringConverter.Encoding>
encodingForData
(String data, char expectedFirstCharacter) static Optional<QStringConverter.Encoding>
encodingForData
(ByteBuffer data) static Optional<QStringConverter.Encoding>
encodingForData
(ByteBuffer data, char expectedFirstCharacter) static Optional<QStringConverter.Encoding>
encodingForHtml
(byte[] data) static Optional<QStringConverter.Encoding>
static Optional<QStringConverter.Encoding>
encodingForHtml
(QByteArray data) static Optional<QStringConverter.Encoding>
encodingForHtml
(String data) static Optional<QStringConverter.Encoding>
encodingForHtml
(ByteBuffer data) static Optional<QStringConverter.Encoding>
encodingForName
(String name) protected final QStringConverterBase.State
getState()
Kotlin property getter.final boolean
hasError()
final boolean
isValid()
final String
name()
static String
final void
protected final QStringConverterBase.State
state()
SeeQStringConverter::
state Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QStringConverter
protected QStringConverter()See
QStringConverter::
QStringConverter() -
QStringConverter
Overloaded constructor for
QStringConverter(io.qt.core.QStringConverter.Encoding, io.qt.core.QStringConverterBase.Flags)
. -
QStringConverter
See
QStringConverter::
QStringConverter(QStringConverter::Encoding, QStringConverterBase::Flags) -
QStringConverter
Overloaded constructor for
QStringConverter(java.lang.String, io.qt.core.QStringConverterBase.Flags)
. -
QStringConverter
See
QStringConverter::
QStringConverter(const char*, QStringConverterBase::Flags)
-
-
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
-
getState
Kotlin property getter. In Java use
state()
instead. -
state
See
QStringConverter::
state -
encodingForHtml
-
encodingForData
-
encodingForData
public static Optional<QStringConverter.Encoding> encodingForData(QByteArray data, char expectedFirstCharacter) -
encodingForHtml
-
encodingForData
-
encodingForData
public static Optional<QStringConverter.Encoding> encodingForData(byte[] data, char expectedFirstCharacter) -
encodingForHtml
-
encodingForData
-
encodingForData
public static Optional<QStringConverter.Encoding> encodingForData(String data, char expectedFirstCharacter) -
encodingForHtml
-
encodingForData
-
encodingForData
public static Optional<QStringConverter.Encoding> encodingForData(ByteBuffer data, char expectedFirstCharacter)
-