- All Implemented Interfaces:
QtObjectInterface
- Direct Known Subclasses:
QStringDecoder
,QStringEncoder
Base class for encoding and decoding text
Java wrapper for Qt class QStringConverter
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.core.QStringConverterBase
QStringConverterBase.Flag, QStringConverterBase.Flags, QStringConverterBase.State
-
Constructor Summary
ModifierConstructorDescriptionprotected
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 QStringList
static Optional<QStringConverter.Encoding>
encodingForData
(byte [] data) Overloaded function forencodingForData(byte[], char)
withexpectedFirstCharacter = 0
.static Optional<QStringConverter.Encoding>
encodingForData
(byte [] data, char expectedFirstCharacter) Overloaded function forencodingForData(io.qt.core.QByteArrayView, char)
.static Optional<QStringConverter.Encoding>
encodingForData
(QByteArray data) Overloaded function forencodingForData(io.qt.core.QByteArray, char)
withexpectedFirstCharacter = 0
.static Optional<QStringConverter.Encoding>
encodingForData
(QByteArray data, char expectedFirstCharacter) Overloaded function forencodingForData(io.qt.core.QByteArrayView, char)
.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) Overloaded function forencodingForData(java.lang.String, char)
withexpectedFirstCharacter = 0
.static Optional<QStringConverter.Encoding>
encodingForData
(String data, char expectedFirstCharacter) Overloaded function forencodingForData(io.qt.core.QByteArrayView, char)
.static Optional<QStringConverter.Encoding>
encodingForData
(ByteBuffer data) Overloaded function forencodingForData(java.nio.ByteBuffer, char)
withexpectedFirstCharacter = 0
.static Optional<QStringConverter.Encoding>
encodingForData
(ByteBuffer data, char expectedFirstCharacter) Overloaded function forencodingForData(io.qt.core.QByteArrayView, char)
.static Optional<QStringConverter.Encoding>
encodingForHtml
(byte [] data) Overloaded function forencodingForHtml(io.qt.core.QByteArrayView)
.static Optional<QStringConverter.Encoding>
encodingForHtml
(QByteArray data) Overloaded function forencodingForHtml(io.qt.core.QByteArrayView)
.static Optional<QStringConverter.Encoding>
static Optional<QStringConverter.Encoding>
encodingForHtml
(String data) Overloaded function forencodingForHtml(io.qt.core.QByteArrayView)
.static Optional<QStringConverter.Encoding>
encodingForHtml
(ByteBuffer data) Overloaded function forencodingForHtml(io.qt.core.QByteArrayView)
.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()
SeeQStringConverter::
state Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QStringConverter
protected QStringConverter()See
QStringConverter::
QStringConverter() -
QStringConverter
See
QStringConverter::
QStringConverter(QStringConverter::Encoding, QStringConverterBase::Flags) - Parameters:
encoding
-f
-
-
QStringConverter
See
QStringConverter::
QStringConverter(const char*, QStringConverterBase::Flags) - Parameters:
name
-f
-
-
QStringConverter
Overloaded constructor for
QStringConverter(io.qt.core.QStringConverter.Encoding, io.qt.core.QStringConverterBase.Flags)
. -
QStringConverter
Overloaded constructor for
QStringConverter(java.lang.String, io.qt.core.QStringConverterBase.Flags)
.
-
-
Method Details
-
hasError
- Returns:
-
isValid
- Returns:
-
name
- Returns:
-
resetState
-
availableCodecs
- Returns:
-
encodingForData
public static Optional<QStringConverter.Encoding> encodingForData(QByteArrayView data, char expectedFirstCharacter) - Parameters:
data
-expectedFirstCharacter
-- Returns:
-
encodingForHtml
- Parameters:
data
-- Returns:
-
encodingForName
- Parameters:
name
-- Returns:
-
nameForEncoding
- Parameters:
e
-- Returns:
-
state
See
QStringConverter::
state - Returns:
-
encodingForData
Overloaded function for
encodingForData(io.qt.core.QByteArrayView, char)
withexpectedFirstCharacter = 0
. -
encodingForData
Overloaded function for
encodingForData(io.qt.core.QByteArray, char)
withexpectedFirstCharacter = 0
. -
encodingForData
public static Optional<QStringConverter.Encoding> encodingForData(QByteArray data, char expectedFirstCharacter) Overloaded function for
encodingForData(io.qt.core.QByteArrayView, char)
. -
encodingForData
Overloaded function for
encodingForData(java.nio.ByteBuffer, char)
withexpectedFirstCharacter = 0
. -
encodingForData
public static Optional<QStringConverter.Encoding> encodingForData(ByteBuffer data, char expectedFirstCharacter) Overloaded function for
encodingForData(io.qt.core.QByteArrayView, char)
. -
encodingForData
Overloaded function for
encodingForData(byte[], char)
withexpectedFirstCharacter = 0
. -
encodingForData
public static Optional<QStringConverter.Encoding> encodingForData(byte [] data, char expectedFirstCharacter) Overloaded function for
encodingForData(io.qt.core.QByteArrayView, char)
. -
encodingForData
Overloaded function for
encodingForData(java.lang.String, char)
withexpectedFirstCharacter = 0
. -
encodingForData
public static Optional<QStringConverter.Encoding> encodingForData(String data, char expectedFirstCharacter) Overloaded function for
encodingForData(io.qt.core.QByteArrayView, char)
. -
encodingForHtml
Overloaded function for
encodingForHtml(io.qt.core.QByteArrayView)
. -
encodingForHtml
Overloaded function for
encodingForHtml(io.qt.core.QByteArrayView)
. -
encodingForHtml
Overloaded function for
encodingForHtml(io.qt.core.QByteArrayView)
. -
encodingForHtml
Overloaded function for
encodingForHtml(io.qt.core.QByteArrayView)
.
-