java.lang.Object
io.qt.internal.QtJambiObject
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's class QStringConverter
-
Nested Class Summary
Nested 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
ModifierConstructorDescriptionprotected
protected
QStringConverter
(QStringConverter.Encoding encoding, QStringConverterBase.Flag... f) Overloaded constructor forQStringConverter(io.qt.core.QStringConverter.Encoding, io.qt.core.QStringConverterBase.Flags)
.protected
protected
Constructor for internal use only.protected
QStringConverter
(String name, QStringConverterBase.Flag... f) Overloaded constructor forQStringConverter(java.lang.String, io.qt.core.QStringConverterBase.Flags)
.protected
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<QStringConverter.Encoding>
encodingForData
(byte[] data) static Optional<QStringConverter.Encoding>
encodingForData
(byte[] data, char expectedFirstCharacter) static Optional<QStringConverter.Encoding>
encodingForData
(QByteArray data) static Optional<QStringConverter.Encoding>
encodingForData
(QByteArray 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
(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>
encodingForHtml
(QByteArray data) static Optional<QStringConverter.Encoding>
static Optional<QStringConverter.Encoding>
encodingForHtml
(String data) static Optional<QStringConverter.Encoding>
encodingForHtml
(ByteBuffer data) static Optional<QStringConverter.Encoding>
encodingForName
(String name) final boolean
hasError()
final boolean
isValid()
final String
name()
static String
final void
protected final QStringConverterBase.State
state()
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
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
-
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)
-