java.lang.Object
io.qt.QtObject
io.qt.core.QTextEncoder
- All Implemented Interfaces:
QtObjectInterface
State-based encoder
Java wrapper for Qt class QTextEncoder
-
Constructor Summary
ConstructorDescriptionQTextEncoder
(QTextCodec codec) QTextEncoder
(QTextCodec codec, QTextCodec.ConversionFlag ... flags) Overloaded constructor forQTextEncoder(io.qt.core.QTextCodec, io.qt.core.QTextCodec.ConversionFlags)
.QTextEncoder
(QTextCodec codec, QTextCodec.ConversionFlags flags) -
Method Summary
Modifier and TypeMethodDescriptionfinal QByteArray
fromUnicode
(char[] uc) Overloaded function forfromUnicode(java.nio.CharBuffer)
.final QByteArray
fromUnicode
(char[] uc, int offsetOfUc, int len) Overloaded function forfromUnicode(java.nio.CharBuffer)
.final QByteArray
fromUnicode
(String str) final QByteArray
final boolean
SeeQTextEncoder::
hasFailure()const Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QTextEncoder
- Parameters:
codec
-
-
QTextEncoder
- Parameters:
codec
-flags
-- Since:
- This function was introduced in Qt 4.7.
-
QTextEncoder
Overloaded constructor for
QTextEncoder(io.qt.core.QTextCodec, io.qt.core.QTextCodec.ConversionFlags)
.
-
-
Method Details
-
fromUnicode
- Parameters:
str
-- Returns:
- Since:
- This function was introduced in Qt 5.10.
-
fromUnicode
- Parameters:
uc
-- Returns:
-
hasFailure
See
QTextEncoder::
hasFailure()const - Returns:
-
fromUnicode
Overloaded function for
fromUnicode(java.nio.CharBuffer)
. -
fromUnicode
Overloaded function for
fromUnicode(java.nio.CharBuffer)
.
-