Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 182

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 16:57:47 CEST 2007 -->
<TITLE>
QTextCodec
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.core.QTextCodec class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QTextCodec";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTemporaryFile.html" title="class in com.trolltech.qt.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTextCodec_ConverterState.html" title="class in com.trolltech.qt.core"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/core/QTextCodec.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QTextCodec.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.core</FONT>
<BR>
Class QTextCodec</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A>
          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.core.QTextCodec</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <B>QTextCodec</B><DT>extends <A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></DL>
</PRE>

<P>
<p>The <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> class provides conversions between text encodings.</p>
<p>Qt uses Unicode to store, draw and manipulate strings. In many situations you may wish to deal with data that uses a different encoding. For example, most Japanese documents are still stored in Shift-JIS or ISO 2022-JP, while Russian users often have their documents in KOI8-R or Windows-1251.</p>
<p>Qt provides a set of <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> classes to help with converting non-Unicode formats to and from Unicode. You can also create your own codec classes.</p>
<p>The supported encodings are:</p>
<ul>
<li>Apple Roman</li>
<li><a href="%2E%2E/codec-big5.html"><tt>Big5</tt></a></li>
<li><a href="%2E%2E/codec-big5hkscs.html"><tt>Big5-HKSCS</tt></a></li>
<li><a href="%2E%2E/codec-eucjp.html">EUC-JP</tt></a></li>
<li><a href="%2E%2E/codec-euckr.html">EUC-KR</tt></a></li>
<li><a href="%2E%2E/codec-gbk.html">GB18030-0</tt></a></li>
<li>IBM 850</li>
<li>IBM 866</li>
<li>IBM 874</li>
<li><a href="%2E%2E/codecs-jis.html">ISO 2022-JP</tt></a></li>
<li>ISO 8859-1 to 10</li>
<li>ISO 8859-13 to 16</li>
<li>Iscii-Bng, Dev, Gjr, Knd, Mlm, Ori, Pnj, Tlg, and Tml</li>
<li>JIS X 0201</li>
<li>JIS X 0208</li>
<li>KOI8-R</li>
<li>KOI8-U</li>
<li>MuleLao-1</li>
<li>ROMAN8</li>
<li><a href="%2E%2E/codec-sjis.html">Shift-JIS</tt></a></li>
<li>TIS-620</li>
<li><a href="%2E%2E/codec-tscii.html">TSCII</tt></a></li>
<li>UTF-8</li>
<li>UTF-16</li>
<li>UTF-16BE</li>
<li>UTF-16LE</li>
<li>Windows-1250 to 1258</li>
<li>WINSAMI2</li>
</ul>
<p>QTextCodecs can be used as follows to convert some locally encoded string to Unicode. Suppose you have some string encoded in Russian KOI8-R encoding, and want to convert it to Unicode. The simple way to do it is like this:</p>
<pre>    QByteArray encodedString = &quot;...&quot;;
    QTextCodec *codec = QTextCodec::codecForName(&quot;KOI8-R&quot;);
    QString string = codec-&gt;toUnicode(encodedString);</pre>
<p>After this, <tt>string</tt> holds the text converted to Unicode. Converting a string from Unicode to the local encoding is just as easy:</p>
<pre>    QString string = &quot;...&quot;;
    QTextCodec *codec = QTextCodec::codecForName(&quot;KOI8-R&quot;);
    QByteArray encodedString = codec-&gt;fromUnicode(string);</pre>
<p>To read or write files in various encodings, use <a href="QTextStream.html"><tt>QTextStream</tt></a> and its setCodec() function. See the Codecs</tt> example for an application of <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> to file I/O.</p>
<p>Some care must be taken when trying to convert the data in chunks, for example, when receiving it over a network. In such cases it is possible that a multi-byte character will be split over two chunks. At best this might result in the loss of a character and at worst cause the entire conversion to fail.</p>
<p>The approach to use in these situations is to create a <a href="QTextDecoder.html"><tt>QTextDecoder</tt></a> object for the codec and use this <a href="QTextDecoder.html"><tt>QTextDecoder</tt></a> for the whole decoding process, as shown below:</p>
<pre>    QTextCodec *codec = QTextCodec::codecForName(&quot;Shift-JIS&quot;);
    QTextDecoder *decoder = codec-&gt;makeDecoder();

    QString string;
    while (new_data_available()) {
        QByteArray chunk = get_new_data();
        string += decoder-&gt;toUnicode(chunk);
    }</pre>
<p>The <a href="QTextDecoder.html"><tt>QTextDecoder</tt></a> object maintains state between chunks and therefore works correctly even if a multi-byte character is split between chunks.</p>
<a name="creating-your-own-codec-class"></a>
<h3>Creating Your Own Codec Class</h3>
<p>Support for new text encodings can be added to Qt by creating <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> subclasses.</p>
<p>The pure virtual functions describe the encoder to the system and the coder is used as required in the different text file formats supported by <a href="QTextStream.html"><tt>QTextStream</tt></a>, and under X11, for the locale-specific character input and output.</p>
<p>To add support for another encoding to Qt, make a subclass of <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> and implement the functions listed in the table below.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Function</th><th>Description</th></tr></thead>
<tr valign="top" class="odd"><td><a href="QTextCodec.html#name()"><tt>name</tt></a></td><td>Returns the official name for the encoding. If the ncoding is listed in the <a href="http://www.iana.org/assignments/character-sets">IANA character-sets encoding file</tt></a>, the name should be the preferred MIME name for the encoding.</td></tr>
<tr valign="top" class="even"><td><a href="QTextCodec.html#aliases()"><tt>aliases</tt></a></td><td>Returns a list of alternative names for the encoding. <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> provides a default implementation that returns an empty list. For example, &quot;ISO-8859-1&quot; has &quot;latin1&quot;, &quot;CP819&quot;, &quot;IBM819&quot;, and &quot;iso-ir-100&quot; as aliases.</td></tr>
<tr valign="top" class="odd"><td><a href="QTextCodec.html#mibEnum()"><tt>mibEnum</tt></a></td><td>Return the MIB enum for the encoding if it is listed in the <a href="http://www.iana.org/assignments/character-sets">IANA character-sets encoding file</tt></a>.</td></tr>
<tr valign="top" class="even"><td><a href="QTextCodec.html#convertToUnicode(byte[], int, com.trolltech.qt.core.QTextCodec_ConverterState)"><tt>convertToUnicode</tt></a></td><td>Converts an 8-bit character string to Unicode.</td></tr>
<tr valign="top" class="odd"><td><a href="QTextCodec.html#convertFromUnicode(char[], int, com.trolltech.qt.core.QTextCodec_ConverterState)"><tt>convertFromUnicode</tt></a></td><td>Converts a Unicode string to an 8-bit character string.</td></tr>
</table></p>
<p>You may find it more convenient to make your codec class available as a plugin; see <a href="%2E%2E/plugins-howto.html">How to Create Qt Plugins</tt></a> for details.</p>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html"><tt>QTextStream</tt></a>, 
<a href="QTextDecoder.html"><tt>QTextDecoder</tt></a>, 
<a href="QTextEncoder.html"><tt>QTextEncoder</tt></a>, 
<CODE>Example</tt></CODE></DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.ConversionFlag.html" title="enum in com.trolltech.qt.core">QTextCodec.ConversionFlag</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Press link for info on QTextCodec.ConversionFlag</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.ConversionFlags.html" title="class in com.trolltech.qt.core">QTextCodec.ConversionFlags</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This QFlag class provides flags for the int enum.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>&gt;</CODE></TD>
</TR>
</TABLE>
&nbsp;

<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#QTextCodec()">QTextCodec</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a>, and gives it the highest precedence.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.List&lt;<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#aliases()">aliases</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subclasses can return a number of aliases for the codec in question.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.util.List&lt;<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#availableCodecs()">availableCodecs</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the list of all available codecs, by name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.util.List&lt;java.lang.Integer&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#availableMibs()">availableMibs</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the list of MIBs for all available codecs.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#canEncode(char)">canEncode</A></B>(char&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the Unicode character <tt>arg__1</tt> can be fully encoded with this codec; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#canEncode(java.lang.String)">canEncode</A></B>(java.lang.String&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<tt>arg__1</tt> contains the string being tested for encode-ability.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#codecForCStrings()">codecForCStrings</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the codec used by <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a> to convert to and from <tt>const char *</tt> and QByteArrays.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#codecForHtml(com.trolltech.qt.core.QByteArray)">codecForHtml</A></B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;ba)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is used internally by Qt Jambi.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#codecForLocale()">codecForLocale</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a pointer to the codec most suitable for this locale.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#codecForMib(int)">codecForMib</A></B>(int&nbsp;mib)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> which matches the MIBenum <tt>mib</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#codecForName(com.trolltech.qt.core.QByteArray)">codecForName</A></B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Searches all installed <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> objects and returns the one which best matches <tt>name</tt>; the match is case-insensitive.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#codecForName(java.lang.String)">codecForName</A></B>(java.lang.String&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Searches all installed QTextCodec objects and returns the one which best
matches <tt>name</tt>; the match is case-insensitive.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected abstract &nbsp;<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#convertFromUnicode(char[], int, com.trolltech.qt.core.QTextCodec_ConverterState)">convertFromUnicode</A></B>(char[]&nbsp;in,
                   int&nbsp;length,
                   <A HREF="../../../../com/trolltech/qt/core/QTextCodec_ConverterState.html" title="class in com.trolltech.qt.core">QTextCodec_ConverterState</A>&nbsp;state)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> subclasses must reimplement this function.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected abstract &nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#convertToUnicode(byte[], int, com.trolltech.qt.core.QTextCodec_ConverterState)">convertToUnicode</A></B>(byte[]&nbsp;in,
                 int&nbsp;length,
                 <A HREF="../../../../com/trolltech/qt/core/QTextCodec_ConverterState.html" title="class in com.trolltech.qt.core">QTextCodec_ConverterState</A>&nbsp;state)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> subclasses must reimplement this function.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns the QTextCodec instance pointed to by nativePointer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#fromUnicode(java.lang.String)">fromUnicode</A></B>(java.lang.String&nbsp;uc)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts <tt>uc</tt> from Unicode to the encoding of this codec, and returns the result in a <a href="QByteArray.html"><tt>QByteArray</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTextDecoder.html" title="class in com.trolltech.qt.core">QTextDecoder</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#makeDecoder()">makeDecoder</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a <a href="QTextDecoder.html"><tt>QTextDecoder</tt></a> which stores enough state to decode chunks of <tt>char *</tt> data to create chunks of Unicode data.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTextEncoder.html" title="class in com.trolltech.qt.core">QTextEncoder</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#makeEncoder()">makeEncoder</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a <a href="QTextEncoder.html"><tt>QTextEncoder</tt></a> which stores enough state to encode chunks of Unicode data as <tt>char *</tt> data.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#mibEnum()">mibEnum</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subclasses of <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> must reimplement this function.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#name()">name</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> subclasses must reimplement this function.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#setCodecForCStrings(com.trolltech.qt.core.QTextCodec)">setCodecForCStrings</A></B>(<A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A>&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the codec used by <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a> to convert to and from <tt>const char *</tt> and QByteArrays.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#setCodecForLocale(com.trolltech.qt.core.QTextCodec)">setCodecForLocale</A></B>(<A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A>&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the codec to <tt>c</tt>; this will be returned by <a href="QTextCodec.html#codecForLocale()"><tt>codecForLocale</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextCodec.html#toUnicode(com.trolltech.qt.core.QByteArray)">toUnicode</A></B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts <tt>arg__1</tt> from the encoding of this codec to Unicode, and returns the result in a <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a>.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#thread()">thread</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="QTextCodec()"><!-- --></A><H3>
QTextCodec</H3>
<PRE>
protected <B>QTextCodec</B>()</PRE>
<DL>
<DD><p>Constructs a <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a>, and gives it the highest precedence. The <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> should always be constructed on the heap (i.e&#x2e; with <tt>new</tt>). Qt takes ownership and will delete it when the application terminates.</p>
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="canEncode(java.lang.String)"><!-- --></A><H3>
canEncode</H3>
<PRE>
public final boolean <B>canEncode</B>(java.lang.String&nbsp;arg__1)</PRE>
<DL>
<DD><p><tt>arg__1</tt> contains the string being tested for encode-ability.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="canEncode(char)"><!-- --></A><H3>
canEncode</H3>
<PRE>
public final boolean <B>canEncode</B>(char&nbsp;arg__1)</PRE>
<DL>
<DD><p>Returns true if the Unicode character <tt>arg__1</tt> can be fully encoded with this codec; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="fromUnicode(java.lang.String)"><!-- --></A><H3>
fromUnicode</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> <B>fromUnicode</B>(java.lang.String&nbsp;uc)</PRE>
<DL>
<DD><p>Converts <tt>uc</tt> from Unicode to the encoding of this codec, and returns the result in a <a href="QByteArray.html"><tt>QByteArray</tt></a>.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="makeDecoder()"><!-- --></A><H3>
makeDecoder</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QTextDecoder.html" title="class in com.trolltech.qt.core">QTextDecoder</A> <B>makeDecoder</B>()</PRE>
<DL>
<DD><p>Creates a <a href="QTextDecoder.html"><tt>QTextDecoder</tt></a> which stores enough state to decode chunks of <tt>char *</tt> data to create chunks of Unicode data.</p>
<p>The caller is responsible for deleting the returned object.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="makeEncoder()"><!-- --></A><H3>
makeEncoder</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QTextEncoder.html" title="class in com.trolltech.qt.core">QTextEncoder</A> <B>makeEncoder</B>()</PRE>
<DL>
<DD><p>Creates a <a href="QTextEncoder.html"><tt>QTextEncoder</tt></a> which stores enough state to encode chunks of Unicode data as <tt>char *</tt> data.</p>
<p>The caller is responsible for deleting the returned object.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="toUnicode(com.trolltech.qt.core.QByteArray)"><!-- --></A><H3>
toUnicode</H3>
<PRE>
public final java.lang.String <B>toUnicode</B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;arg__1)</PRE>
<DL>
<DD><p>Converts <tt>arg__1</tt> from the encoding of this codec to Unicode, and returns the result in a <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a>.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="aliases()"><!-- --></A><H3>
aliases</H3>
<PRE>
public java.util.List&lt;<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&gt; <B>aliases</B>()</PRE>
<DL>
<DD><p>Subclasses can return a number of aliases for the codec in question.</p>
<p>Standard aliases for codecs can be found in the <a href="http://www.iana.org/assignments/character-sets">IANA character-sets encoding file</tt></a>.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="convertFromUnicode(char[], int, com.trolltech.qt.core.QTextCodec_ConverterState)"><!-- --></A><H3>
convertFromUnicode</H3>
<PRE>
protected abstract <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> <B>convertFromUnicode</B>(char[]&nbsp;in,
                                                 int&nbsp;length,
                                                 <A HREF="../../../../com/trolltech/qt/core/QTextCodec_ConverterState.html" title="class in com.trolltech.qt.core">QTextCodec_ConverterState</A>&nbsp;state)</PRE>
<DL>
<DD><p><a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> subclasses must reimplement this function.</p>
<p>Converts the first <tt>length</tt> of characters from the <tt>in</tt> array from Unicode to the encoding of the subclass, and returns the result in a <a href="QByteArray.html"><tt>QByteArray</tt></a>.</p>
<p><tt>state</tt> can be 0 in which case the conversion is stateless and default conversion rules should be used. If state is not 0, the codec should save the state after the conversion in <tt>state</tt>, and adjust the remainingChars and invalidChars members of the struct.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="convertToUnicode(byte[], int, com.trolltech.qt.core.QTextCodec_ConverterState)"><!-- --></A><H3>
convertToUnicode</H3>
<PRE>
protected abstract java.lang.String <B>convertToUnicode</B>(byte[]&nbsp;in,
                                                     int&nbsp;length,
                                                     <A HREF="../../../../com/trolltech/qt/core/QTextCodec_ConverterState.html" title="class in com.trolltech.qt.core">QTextCodec_ConverterState</A>&nbsp;state)</PRE>
<DL>
<DD><p><a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> subclasses must reimplement this function.</p>
<p>Converts the first <tt>length</tt> characters of <tt>in</tt> from the encoding of the subclass to Unicode, and returns the result in a <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a>.</p>
<p><tt>state</tt> can be 0, in which case the conversion is stateless and default conversion rules should be used. If state is not 0, the codec should save the state after the conversion in <tt>state</tt>, and adjust the remainingChars and invalidChars members of the struct.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="mibEnum()"><!-- --></A><H3>
mibEnum</H3>
<PRE>
public abstract int <B>mibEnum</B>()</PRE>
<DL>
<DD><p>Subclasses of <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> must reimplement this function. It returns the MIBenum (see <a href="http://www.iana.org/assignments/character-sets">the IANA character-sets encoding file</tt></a> for more information). It is important that each <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> subclass returns the correct unique value for this function.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="name()"><!-- --></A><H3>
name</H3>
<PRE>
public abstract <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> <B>name</B>()</PRE>
<DL>
<DD><p><a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> subclasses must reimplement this function. It returns the name of the encoding supported by the subclass.</p>
<p>If the codec is registered as a character set in the <a href="http://www.iana.org/assignments/character-sets">IANA character-sets encoding file</tt></a> this method should return the preferred mime name for the codec if defined, otherwise its name.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="availableCodecs()"><!-- --></A><H3>
availableCodecs</H3>
<PRE>
public static java.util.List&lt;<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&gt; <B>availableCodecs</B>()</PRE>
<DL>
<DD><p>Returns the list of all available codecs, by name. Call QTextCodec::codecForName() to obtain the <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> for the name.</p>
<p>The list may contain many mentions of the same codec if the codec has aliases.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCodec.html#availableMibs()"><tt>availableMibs</tt></a>, 
<a href="QTextCodec.html#name()"><tt>name</tt></a>, 
<a href="QTextCodec.html#aliases()"><tt>aliases</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="availableMibs()"><!-- --></A><H3>
availableMibs</H3>
<PRE>
public static java.util.List&lt;java.lang.Integer&gt; <B>availableMibs</B>()</PRE>
<DL>
<DD><p>Returns the list of MIBs for all available codecs. Call QTextCodec::codecForMib() to obtain the <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> for the MIB.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCodec.html#availableCodecs()"><tt>availableCodecs</tt></a>, 
<a href="QTextCodec.html#mibEnum()"><tt>mibEnum</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="codecForCStrings()"><!-- --></A><H3>
codecForCStrings</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A> <B>codecForCStrings</B>()</PRE>
<DL>
<DD><p>Returns the codec used by <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a> to convert to and from <tt>const char *</tt> and QByteArrays. If this function returns 0 (the default), <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a> assumes Latin-1.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCodec.html#setCodecForCStrings(com.trolltech.qt.core.QTextCodec)"><tt>setCodecForCStrings</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="codecForHtml(com.trolltech.qt.core.QByteArray)"><!-- --></A><H3>
codecForHtml</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A> <B>codecForHtml</B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;ba)</PRE>
<DL>
<DD><p>This method is used internally by Qt Jambi.
Do not use it in your applications.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="codecForLocale()"><!-- --></A><H3>
codecForLocale</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A> <B>codecForLocale</B>()</PRE>
<DL>
<DD><p>Returns a pointer to the codec most suitable for this locale.</p>
<p>On Windows, the codec will be based on a system locale. On Unix systems, starting with Qt 4.2, the codec will be using the <i>iconv</i> library. Note that in both cases the codec's name will be &quot;System&quot;.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCodec.html#setCodecForLocale(com.trolltech.qt.core.QTextCodec)"><tt>setCodecForLocale</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="codecForMib(int)"><!-- --></A><H3>
codecForMib</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A> <B>codecForMib</B>(int&nbsp;mib)</PRE>
<DL>
<DD><p>Returns the <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> which matches the MIBenum <tt>mib</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="codecForName(com.trolltech.qt.core.QByteArray)"><!-- --></A><H3>
codecForName</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A> <B>codecForName</B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;name)</PRE>
<DL>
<DD><p>Searches all installed <a href="QTextCodec.html#QTextCodec()"><tt>QTextCodec</tt></a> objects and returns the one which best matches <tt>name</tt>; the match is case-insensitive. Returns 0 if no codec matching the name <tt>name</tt> could be found.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setCodecForCStrings(com.trolltech.qt.core.QTextCodec)"><!-- --></A><H3>
setCodecForCStrings</H3>
<PRE>
public static void <B>setCodecForCStrings</B>(<A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A>&nbsp;c)</PRE>
<DL>
<DD><p>Sets the codec used by <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a> to convert to and from <tt>const char *</tt> and QByteArrays. If the <tt>c</tt> is 0 (the default), <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a> assumes Latin-1.</p>
<p><b>Warning:</b> Some codecs do not preserve the characters in the ASCII range (0x00 to 0x7F). For example, the Japanese Shift-JIS encoding maps the backslash character (0x5A) to the Yen character. To avoid undesirable side-effects, we recommend avoiding such codecs with setCodecsForCString().</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCodec.html#codecForCStrings()"><tt>codecForCStrings</tt></a>, 
<tt>setCodecForTr</tt></DL>
</DD>
</DL>
<HR>

<A NAME="setCodecForLocale(com.trolltech.qt.core.QTextCodec)"><!-- --></A><H3>
setCodecForLocale</H3>
<PRE>
public static void <B>setCodecForLocale</B>(<A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A>&nbsp;c)</PRE>
<DL>
<DD><p>Set the codec to <tt>c</tt>; this will be returned by <a href="QTextCodec.html#codecForLocale()"><tt>codecForLocale</tt></a>. This might be needed for some applications that want to use their own mechanism for setting the locale.</p>
<p>Setting this codec is not supported on DOS based Windows.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextCodec.html#codecForLocale()"><tt>codecForLocale</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</PRE>
<DL>
<DD>This function returns the QTextCodec instance pointed to by nativePointer
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL>
</DD>
</DL>
<HR>

<A NAME="codecForName(java.lang.String)"><!-- --></A><H3>
codecForName</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A> <B>codecForName</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>Searches all installed QTextCodec objects and returns the one which best
matches <tt>name</tt>; the match is case-insensitive. Returns 0 if no codec
matching the name \a name could be found.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTemporaryFile.html" title="class in com.trolltech.qt.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTextCodec_ConverterState.html" title="class in com.trolltech.qt.core"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/core/QTextCodec.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QTextCodec.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>