- All Implemented Interfaces:
QtObjectInterface
Conversions between text encodings
Java wrapper for Qt class QTextCodec
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQTextCodec::ConversionFlag
static final class
QFlags
type for enumQTextCodec.ConversionFlag
static class
Java wrapper for Qt classQTextCodec::ConverterState
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaliases()
static QList<QByteArray>
static QList<@QtPrimitiveType Integer>
final boolean
canEncode
(char arg__1) final boolean
static QTextCodec
codecForHtml
(byte [] ba) Overloaded function forcodecForHtml(io.qt.core.QByteArray)
.static QTextCodec
codecForHtml
(byte [] ba, QTextCodec defaultCodec) Overloaded function forcodecForHtml(io.qt.core.QByteArray, io.qt.core.QTextCodec)
.static QTextCodec
static QTextCodec
codecForHtml
(QByteArray ba, QTextCodec defaultCodec) static QTextCodec
static QTextCodec
codecForMib
(int mib) static QTextCodec
codecForName
(byte [] name) Overloaded function forcodecForName(io.qt.core.QByteArray)
.static QTextCodec
codecForName
(QByteArray name) static QTextCodec
codecForName
(String name) static QTextCodec
codecForUtfText
(byte [] ba) Overloaded function forcodecForUtfText(io.qt.core.QByteArray)
.static QTextCodec
codecForUtfText
(byte [] ba, QTextCodec defaultCodec) Overloaded function forcodecForUtfText(io.qt.core.QByteArray, io.qt.core.QTextCodec)
.static QTextCodec
static QTextCodec
codecForUtfText
(QByteArray ba, QTextCodec defaultCodec) protected final QByteArray
convertFromUnicode
(char[] in, int offsetOfIn, int length, QTextCodec.ConverterState state) Overloaded function forconvertFromUnicode(java.nio.CharBuffer, io.qt.core.QTextCodec.ConverterState)
.protected final QByteArray
convertFromUnicode
(char[] in, QTextCodec.ConverterState state) Overloaded function forconvertFromUnicode(java.nio.CharBuffer, io.qt.core.QTextCodec.ConverterState)
.protected abstract QByteArray
protected final String
convertToUnicode
(byte[] in, int offsetOfIn, int length, QTextCodec.ConverterState state) Overloaded function forconvertToUnicode(java.nio.ByteBuffer, io.qt.core.QTextCodec.ConverterState)
.protected final String
convertToUnicode
(byte[] in, QTextCodec.ConverterState state) Overloaded function forconvertToUnicode(java.nio.ByteBuffer, io.qt.core.QTextCodec.ConverterState)
.protected abstract String
convertToUnicode
(ByteBuffer in, QTextCodec.ConverterState state) final QByteArray
fromUnicode
(char[] in) Overloaded function forfromUnicode(char[], io.qt.core.QTextCodec.ConverterState)
withstate = null
.final QByteArray
fromUnicode
(char[] in, int offsetOfIn, int length) Overloaded function forfromUnicode(char[], int, int, io.qt.core.QTextCodec.ConverterState)
withstate = null
.final QByteArray
fromUnicode
(char[] in, int offsetOfIn, int length, QTextCodec.ConverterState state) Overloaded function forfromUnicode(java.nio.CharBuffer, io.qt.core.QTextCodec.ConverterState)
.final QByteArray
fromUnicode
(char[] in, QTextCodec.ConverterState state) Overloaded function forfromUnicode(java.nio.CharBuffer, io.qt.core.QTextCodec.ConverterState)
.final QByteArray
fromUnicode
(String uc) final QByteArray
Overloaded function forfromUnicode(java.nio.CharBuffer, io.qt.core.QTextCodec.ConverterState)
withstate = null
.final QByteArray
fromUnicode
(CharBuffer in, QTextCodec.ConverterState state) final QTextDecoder
Overloaded function formakeDecoder(io.qt.core.QTextCodec.ConversionFlags)
withflags = new io.qt.core.QTextCodec.ConversionFlags(0)
.final QTextDecoder
makeDecoder
(QTextCodec.ConversionFlag ... flags) Overloaded function formakeDecoder(io.qt.core.QTextCodec.ConversionFlags)
.final QTextDecoder
final QTextEncoder
Overloaded function formakeEncoder(io.qt.core.QTextCodec.ConversionFlags)
withflags = new io.qt.core.QTextCodec.ConversionFlags(0)
.final QTextEncoder
makeEncoder
(QTextCodec.ConversionFlag ... flags) Overloaded function formakeEncoder(io.qt.core.QTextCodec.ConversionFlags)
.final QTextEncoder
abstract int
mibEnum()
abstract QByteArray
name()
static void
final String
toUnicode
(byte[] in) Overloaded function fortoUnicode(byte[], io.qt.core.QTextCodec.ConverterState)
withstate = null
.final String
toUnicode
(byte[] in, int offsetOfIn, int length) Overloaded function fortoUnicode(byte[], int, int, io.qt.core.QTextCodec.ConverterState)
withstate = null
.final String
toUnicode
(byte[] in, int offsetOfIn, int length, QTextCodec.ConverterState state) Overloaded function fortoUnicode(java.nio.ByteBuffer, io.qt.core.QTextCodec.ConverterState)
.final String
toUnicode
(byte[] in, QTextCodec.ConverterState state) Overloaded function fortoUnicode(java.nio.ByteBuffer, io.qt.core.QTextCodec.ConverterState)
.final String
toUnicode
(QByteArray arg__1) final String
toUnicode
(ByteBuffer in) Overloaded function fortoUnicode(java.nio.ByteBuffer, io.qt.core.QTextCodec.ConverterState)
withstate = null
.final String
toUnicode
(ByteBuffer in, QTextCodec.ConverterState state) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QTextCodec
protected QTextCodec()
-
-
Method Details
-
canEncode
- Parameters:
arg__1
-- Returns:
-
canEncode
- Parameters:
arg__1
-- Returns:
-
fromUnicode
- Parameters:
uc
-- Returns:
-
fromUnicode
- Parameters:
in
-state
-- Returns:
-
makeDecoder
- Parameters:
flags
-- Returns:
- Since:
- This function was introduced in Qt 4.7.
-
makeEncoder
- Parameters:
flags
-- Returns:
- Since:
- This function was introduced in Qt 4.7.
-
toUnicode
- Parameters:
arg__1
-- Returns:
-
toUnicode
- Parameters:
in
-state
-- Returns:
-
aliases
- Returns:
-
convertFromUnicode
@QtUninvokable protected abstract QByteArray convertFromUnicode(CharBuffer in, QTextCodec.ConverterState state) - Parameters:
in
-state
-- Returns:
-
convertToUnicode
@QtUninvokable protected abstract String convertToUnicode(ByteBuffer in, QTextCodec.ConverterState state) - Parameters:
in
-state
-- Returns:
-
mibEnum
- Returns:
-
name
- Returns:
-
availableCodecs
- Returns:
-
availableMibs
- Returns:
-
codecForHtml
- Parameters:
ba
-- Returns:
-
codecForHtml
- Parameters:
ba
-defaultCodec
-- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
codecForLocale
- Returns:
-
codecForMib
- Parameters:
mib
-- Returns:
-
codecForName
- Parameters:
name
-- Returns:
-
codecForName
- Parameters:
name
-- Returns:
-
codecForUtfText
- Parameters:
ba
-- Returns:
-
codecForUtfText
- Parameters:
ba
-defaultCodec
-- Returns:
- Since:
- This function was introduced in Qt 4.6.
-
setCodecForLocale
- Parameters:
c
-
-
fromUnicode
Overloaded function for
fromUnicode(java.nio.CharBuffer, io.qt.core.QTextCodec.ConverterState)
withstate = null
. -
fromUnicode
Overloaded function for
fromUnicode(char[], int, int, io.qt.core.QTextCodec.ConverterState)
withstate = null
. -
fromUnicode
@QtUninvokable public final QByteArray fromUnicode(char[] in, int offsetOfIn, int length, QTextCodec.ConverterState state) Overloaded function for
fromUnicode(java.nio.CharBuffer, io.qt.core.QTextCodec.ConverterState)
. -
fromUnicode
Overloaded function for
fromUnicode(char[], io.qt.core.QTextCodec.ConverterState)
withstate = null
. -
fromUnicode
Overloaded function for
fromUnicode(java.nio.CharBuffer, io.qt.core.QTextCodec.ConverterState)
. -
makeDecoder
Overloaded function for
makeDecoder(io.qt.core.QTextCodec.ConversionFlags)
withflags = new io.qt.core.QTextCodec.ConversionFlags(0)
. -
makeDecoder
Overloaded function for
makeDecoder(io.qt.core.QTextCodec.ConversionFlags)
. -
makeEncoder
Overloaded function for
makeEncoder(io.qt.core.QTextCodec.ConversionFlags)
withflags = new io.qt.core.QTextCodec.ConversionFlags(0)
. -
makeEncoder
Overloaded function for
makeEncoder(io.qt.core.QTextCodec.ConversionFlags)
. -
toUnicode
Overloaded function for
toUnicode(java.nio.ByteBuffer, io.qt.core.QTextCodec.ConverterState)
withstate = null
. -
toUnicode
Overloaded function for
toUnicode(byte[], int, int, io.qt.core.QTextCodec.ConverterState)
withstate = null
. -
toUnicode
@QtUninvokable public final String toUnicode(byte[] in, int offsetOfIn, int length, QTextCodec.ConverterState state) Overloaded function for
toUnicode(java.nio.ByteBuffer, io.qt.core.QTextCodec.ConverterState)
. -
toUnicode
Overloaded function for
toUnicode(byte[], io.qt.core.QTextCodec.ConverterState)
withstate = null
. -
toUnicode
Overloaded function for
toUnicode(java.nio.ByteBuffer, io.qt.core.QTextCodec.ConverterState)
. -
convertFromUnicode
@QtUninvokable protected final QByteArray convertFromUnicode(char[] in, int offsetOfIn, int length, QTextCodec.ConverterState state) Overloaded function for
convertFromUnicode(java.nio.CharBuffer, io.qt.core.QTextCodec.ConverterState)
. -
convertFromUnicode
@QtUninvokable protected final QByteArray convertFromUnicode(char[] in, QTextCodec.ConverterState state) Overloaded function for
convertFromUnicode(java.nio.CharBuffer, io.qt.core.QTextCodec.ConverterState)
. -
convertToUnicode
@QtUninvokable protected final String convertToUnicode(byte[] in, int offsetOfIn, int length, QTextCodec.ConverterState state) Overloaded function for
convertToUnicode(java.nio.ByteBuffer, io.qt.core.QTextCodec.ConverterState)
. -
convertToUnicode
Overloaded function for
convertToUnicode(java.nio.ByteBuffer, io.qt.core.QTextCodec.ConverterState)
. -
codecForHtml
Overloaded function for
codecForHtml(io.qt.core.QByteArray)
. -
codecForHtml
Overloaded function for
codecForHtml(io.qt.core.QByteArray, io.qt.core.QTextCodec)
. -
codecForName
Overloaded function for
codecForName(io.qt.core.QByteArray)
. -
codecForUtfText
Overloaded function for
codecForUtfText(io.qt.core.QByteArray)
. -
codecForUtfText
Overloaded function for
codecForUtfText(io.qt.core.QByteArray, io.qt.core.QTextCodec)
.
-