Qt Jambi Home

com.trolltech.qt.core
Class QTextDecoder

java.lang.Object
  extended by com.trolltech.qt.QSignalEmitter
      extended by com.trolltech.qt.QtJambiObject
          extended by 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 Class Summary
 
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>
 
Constructor Summary
QTextDecoder(QTextCodec codec)
          Constructs a text decoder for the given codec.
 
Method Summary
static QTextDecoder fromNativePointer(QNativePointer nativePointer)
          This function returns the QTextDecoder instance pointed to by nativePointer
 boolean hasFailure()
          
 java.lang.String toUnicode(QByteArray ba)
          Converts the bytes in the byte array specified by ba to Unicode and returns the result.
 
Methods inherited from class com.trolltech.qt.QtJambiObject
dispose, disposed, finalize, reassignNativeResources, tr, tr, tr
 
Methods inherited from class com.trolltech.qt.QSignalEmitter
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.trolltech.qt.QtJambiInterface
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership
 

Constructor Detail

QTextDecoder

public QTextDecoder(QTextCodec codec)

Constructs a text decoder for the given codec.

Method Detail

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.

Qt Jambi Home