com.trolltech.qt.core
Class QTextDecoder
java.lang.Object
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QTextDecoder
- All Implemented Interfaces:
- QtJambiInterface
public class QTextDecoder
- extends QtJambiObject
The QTextDecoder
class provides a state-based decoder. A text decoder converts text from an encoded text format into Unicode using a specific codec.
The decoder converts text in this format into Unicode, remembering any state that is required between calls.
See also:
QTextCodec::makeDecoder()
, and QTextEncoder
.
Methods inherited from class java.lang.Object |
clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QTextDecoder
public QTextDecoder(QTextCodec codec)
- Constructs a text decoder for the given codec.
toUnicode
public final java.lang.String toUnicode(QByteArray ba)
- Converts the bytes in the byte array specified by ba to Unicode and returns the result.
fromNativePointer
public static QTextDecoder fromNativePointer(QNativePointer nativePointer)
- This method returns the QTextDecoder instance pointed to by nativePointer.