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,
QTextEncoder
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I> |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QTextDecoder
public QTextDecoder(QTextCodec codec)
Constructs a text decoder for the given codec.
hasFailure
public final boolean hasFailure()
-
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 function returns the QTextDecoder instance pointed to by nativePointer
- Parameters:
nativePointer
- the QNativePointer of which object should be returned.