Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 191

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>
QTextStream
</TITLE>

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

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

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QTextStream";
}
</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/QTextEncoder.html" title="class in com.trolltech.qt.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTextStream.FieldAlignment.html" title="enum 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/QTextStream.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QTextStream.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 QTextStream</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.QTextStream</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 class <B>QTextStream</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="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> class provides a convenient interface for reading and writing text.</p>
<p><a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> can operate on a <a href="QIODevice.html"><tt>QIODevice</tt></a>, a <a href="QByteArray.html"><tt>QByteArray</tt></a> or a <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a>. Using <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a>'s streaming operators, you can conveniently read and write words, lines and numbers. For generating text, <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> supports formatting options for field padding and alignment, and formatting of numbers. Example:</p>
<pre>    QFile data(&quot;output.txt&quot;);
    if (data.open(QFile::WriteOnly | QFile::Truncate)) {
        QTextStream out(&amp;data);
        out &lt;&lt; &quot;Result: &quot; &lt;&lt; qSetFieldWidth(10) &lt;&lt; left &lt;&lt; 3.14 &lt;&lt; 2.7 &lt;&lt; endl;
        <span class="comment">// writes &quot;Result: 3.14      2.7       \n&quot;</span>
    }</pre>
<p>It's also common to use <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> to read console input and write console output. <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> is locale aware, and will automatically decode standard input using the correct codec. Example:</p>
<pre>    QTextStream stream(stdin);
    QString line;
    do {
        line = stream.readLine();
    } while (!line.isNull());</pre>
<p>Note that you cannot use QTextStream::atEnd(), which returns true when you have reached the end of the data stream, with stdin.</p>
<p>Besides using <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a>'s constructors, you can also set the device or string <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> operates on by calling <a href="QTextStream.html#setDevice(com.trolltech.qt.core.QIODevice)"><tt>setDevice</tt></a> or setString(). You can seek to a position by calling <a href="QTextStream.html#seek(long)"><tt>seek</tt></a>, and <a href="QTextStream.html#atEnd()"><tt>atEnd</tt></a> will return true when there is no data left to be read. If you call <a href="QTextStream.html#flush()"><tt>flush</tt></a>, <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> will empty all data from its write buffer into the device and call <a href="QTextStream.html#flush()"><tt>flush</tt></a> on the device.</p>
<p>Internally, <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> uses a Unicode based buffer, and <a href="QTextCodec.html"><tt>QTextCodec</tt></a> is used by <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> to automatically support different character sets. By default, QTextCodec::codecForLocale() is used for reading and writing, but you can also set the codec by calling <a href="QTextStream.html#setCodec(com.trolltech.qt.core.QTextCodec)"><tt>setCodec</tt></a>. Automatic Unicode detection is also supported. When this feature is enabled (the default behavior), <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> will detect the UTF-16 BOM (Byte Order Mark) and switch to the appropriate UTF-16 codec when reading. <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> does not write a BOM by default, but you can enable this by calling <a href="QTextStream.html#setGenerateByteOrderMark(boolean)"><tt>setGenerateByteOrderMark</tt></a>(true). When <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> operates on a <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a> directly, the codec is disabled.</p>
<p>There are three general ways to use <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> when reading text files:</p>
<ul>
<li>Chunk by chunk, by calling <a href="QTextStream.html#readLine(long)"><tt>readLine</tt></a> or <a href="QTextStream.html#readAll()"><tt>readAll</tt></a>.</li>
<li>Word by word. <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> supports streaming into QStrings, QByteArrays and char* buffers. Words are delimited by space, and leading white space is automatically skipped.</li>
<li>Character by character, by streaming into QChar or char types. This method is often used for convenient input handling when parsing files, independent of character encoding and end-of-line semantics. To skip white space, call <a href="QTextStream.html#skipWhiteSpace()"><tt>skipWhiteSpace</tt></a>.</li>
</ul>
<p>Since the text stream uses a buffer, you should not read from the stream using the implementation of a superclass. For instance, if you have a <a href="QFile.html"><tt>QFile</tt></a> and read from it directly using QFile::readLine() instead of using the stream, the text stream's internal position will be out of sync with the file's position.</p>
<p>By default, when reading numbers from a stream of text, <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> will automatically detect the number's base representation. For example, if the number starts with &quot;0x&quot;, it is assumed to be in hexadecimal form. If it starts with the digits 1-9, it is assumed to be in decimal form, and so on. You can set the integer base, thereby disabling the automatic detection, by calling <a href="QTextStream.html#setIntegerBase(int)"><tt>setIntegerBase</tt></a>. Example:</p>
<pre>    QTextStream in(&quot;0x50 0x20&quot;);
    int firstNumber, secondNumber;

    in &gt;&gt; firstNumber;             <span class="comment">// firstNumber == 80</span>
    in &gt;&gt; dec &gt;&gt; secondNumber;     <span class="comment">// secondNumber == 0</span>

    char ch;
    in &gt;&gt; ch;                      <span class="comment">// ch == 'x'</span></pre>
<p><a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> supports many formatting options for generating text. You can set the field width and pad character by calling <a href="QTextStream.html#setFieldWidth(int)"><tt>setFieldWidth</tt></a> and <a href="QTextStream.html#setPadChar(char)"><tt>setPadChar</tt></a>. Use <a href="QTextStream.html#setFieldAlignment(com.trolltech.qt.core.QTextStream.FieldAlignment)"><tt>setFieldAlignment</tt></a> to set the alignment within each field. For real numbers, call <a href="QTextStream.html#setRealNumberNotation(com.trolltech.qt.core.QTextStream.RealNumberNotation)"><tt>setRealNumberNotation</tt></a> and <a href="QTextStream.html#setRealNumberPrecision(int)"><tt>setRealNumberPrecision</tt></a> to set the notation (<a href="QTextStream.html#RealNumberNotation-enum"><tt>SmartNotation</tt></a>, <a href="QTextStream.html#RealNumberNotation-enum"><tt>ScientificNotation</tt></a>, <a href="QTextStream.html#RealNumberNotation-enum"><tt>FixedNotation</tt></a>) and precision in digits of the generated number. Some extra number formatting options are also available through <a href="QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><tt>setNumberFlags</tt></a>.</p>
<a name="qtextstream-manipulators"></a><p>Like <tt>&lt;iostream&gt;</tt> in the standard C++ library, <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> also defines several global manipulator functions:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Manipulator</th><th>Description</th></tr></thead>
<tr valign="top" class="odd"><td><tt>bin</tt></td><td>Same as <a href="QTextStream.html#setIntegerBase(int)"><tt>setIntegerBase</tt></a>(2).</td></tr>
<tr valign="top" class="even"><td><tt>oct</tt></td><td>Same as <a href="QTextStream.html#setIntegerBase(int)"><tt>setIntegerBase</tt></a>(8).</td></tr>
<tr valign="top" class="odd"><td><tt>dec</tt></td><td>Same as <a href="QTextStream.html#setIntegerBase(int)"><tt>setIntegerBase</tt></a>(10).</td></tr>
<tr valign="top" class="even"><td><tt>hex</tt></td><td>Same as <a href="QTextStream.html#setIntegerBase(int)"><tt>setIntegerBase</tt></a>(16).</td></tr>
<tr valign="top" class="odd"><td><tt>showbase</tt></td><td>Same as <a href="QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><tt>setNumberFlags</tt></a>(<a href="QTextStream.html#numberFlags()"><tt>numberFlags</tt></a> | <a href="QTextStream.html#NumberFlag-enum"><tt>ShowBase</tt></a>).</td></tr>
<tr valign="top" class="even"><td><tt>forcesign</tt></td><td>Same as <a href="QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><tt>setNumberFlags</tt></a>(<a href="QTextStream.html#numberFlags()"><tt>numberFlags</tt></a> | <a href="QTextStream.html#NumberFlag-enum"><tt>ForceSign</tt></a>).</td></tr>
<tr valign="top" class="odd"><td><tt>forcepoint</tt></td><td>Same as <a href="QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><tt>setNumberFlags</tt></a>(<a href="QTextStream.html#numberFlags()"><tt>numberFlags</tt></a> | <a href="QTextStream.html#NumberFlag-enum"><tt>ForcePoint</tt></a>).</td></tr>
<tr valign="top" class="even"><td><tt>noshowbase</tt></td><td>Same as <a href="QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><tt>setNumberFlags</tt></a>(<a href="QTextStream.html#numberFlags()"><tt>numberFlags</tt></a> &amp; ~<a href="QTextStream.html#NumberFlag-enum"><tt>ShowBase</tt></a>).</td></tr>
<tr valign="top" class="odd"><td><tt>noforcesign</tt></td><td>Same as <a href="QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><tt>setNumberFlags</tt></a>(<a href="QTextStream.html#numberFlags()"><tt>numberFlags</tt></a> &amp; ~<a href="QTextStream.html#NumberFlag-enum"><tt>ForceSign</tt></a>).</td></tr>
<tr valign="top" class="even"><td><tt>noforcepoint</tt></td><td>Same as <a href="QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><tt>setNumberFlags</tt></a>(<a href="QTextStream.html#numberFlags()"><tt>numberFlags</tt></a> &amp; ~<a href="QTextStream.html#NumberFlag-enum"><tt>ForcePoint</tt></a>).</td></tr>
<tr valign="top" class="odd"><td><tt>uppercasebase</tt></td><td>Same as <a href="QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><tt>setNumberFlags</tt></a>(<a href="QTextStream.html#numberFlags()"><tt>numberFlags</tt></a> | <a href="QTextStream.html#NumberFlag-enum"><tt>UppercaseBase</tt></a>).</td></tr>
<tr valign="top" class="even"><td><tt>uppercasedigits</tt></td><td>Same as <a href="QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><tt>setNumberFlags</tt></a>(<a href="QTextStream.html#numberFlags()"><tt>numberFlags</tt></a> | <a href="QTextStream.html#NumberFlag-enum"><tt>UppercaseDigits</tt></a>).</td></tr>
<tr valign="top" class="odd"><td><tt>lowercasebase</tt></td><td>Same as <a href="QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><tt>setNumberFlags</tt></a>(<a href="QTextStream.html#numberFlags()"><tt>numberFlags</tt></a> &amp; ~<a href="QTextStream.html#NumberFlag-enum"><tt>UppercaseBase</tt></a>).</td></tr>
<tr valign="top" class="even"><td><tt>lowercasedigits</tt></td><td>Same as <a href="QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><tt>setNumberFlags</tt></a>(<a href="QTextStream.html#numberFlags()"><tt>numberFlags</tt></a> &amp; ~<a href="QTextStream.html#NumberFlag-enum"><tt>UppercaseDigits</tt></a>).</td></tr>
<tr valign="top" class="odd"><td><tt>fixed</tt></td><td>Same as <a href="QTextStream.html#setRealNumberNotation(com.trolltech.qt.core.QTextStream.RealNumberNotation)"><tt>setRealNumberNotation</tt></a>(<a href="QTextStream.html#RealNumberNotation-enum"><tt>FixedNotation</tt></a>).</td></tr>
<tr valign="top" class="even"><td><tt>scientific</tt></td><td>Same as <a href="QTextStream.html#setRealNumberNotation(com.trolltech.qt.core.QTextStream.RealNumberNotation)"><tt>setRealNumberNotation</tt></a>(<a href="QTextStream.html#RealNumberNotation-enum"><tt>ScientificNotation</tt></a>).</td></tr>
<tr valign="top" class="odd"><td><tt>left</tt></td><td>Same as <a href="QTextStream.html#setFieldAlignment(com.trolltech.qt.core.QTextStream.FieldAlignment)"><tt>setFieldAlignment</tt></a>(<a href="QTextStream.html#FieldAlignment-enum"><tt>AlignLeft</tt></a>).</td></tr>
<tr valign="top" class="even"><td><tt>right</tt></td><td>Same as <a href="QTextStream.html#setFieldAlignment(com.trolltech.qt.core.QTextStream.FieldAlignment)"><tt>setFieldAlignment</tt></a>(<a href="QTextStream.html#FieldAlignment-enum"><tt>AlignRight</tt></a>).</td></tr>
<tr valign="top" class="odd"><td><tt>center</tt></td><td>Same as <a href="QTextStream.html#setFieldAlignment(com.trolltech.qt.core.QTextStream.FieldAlignment)"><tt>setFieldAlignment</tt></a>(<a href="QTextStream.html#FieldAlignment-enum"><tt>AlignCenter</tt></a>).</td></tr>
<tr valign="top" class="even"><td><tt>endl</tt></td><td>Same as operator&lt;&lt;('\n') and <a href="QTextStream.html#flush()"><tt>flush</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>flush</tt></td><td>Same as <a href="QTextStream.html#flush()"><tt>flush</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>reset</tt></td><td>Same as <a href="QTextStream.html#reset()"><tt>reset</tt></a>.</td></tr>
<tr valign="top" class="odd"><td><tt>ws</tt></td><td>Same as <a href="QTextStream.html#skipWhiteSpace()"><tt>skipWhiteSpace</tt></a>.</td></tr>
<tr valign="top" class="even"><td><tt>bom</tt></td><td>Same as <a href="QTextStream.html#setGenerateByteOrderMark(boolean)"><tt>setGenerateByteOrderMark</tt></a>(true).</td></tr>
</table></p>
<p>In addition, Qt provides three global manipulators that take a parameter: qSetFieldWidth(), qSetPadChar(), and qSetRealNumberPrecision().</p>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><a href="QDataStream.html"><tt>QDataStream</tt></a>, 
<a href="QIODevice.html"><tt>QIODevice</tt></a>, 
<a href="QFile.html"><tt>QFile</tt></a>, 
<a href="QBuffer.html"><tt>QBuffer</tt></a>, 
<a href="%2E%2E/network/QTcpSocket.html"><tt>QTcpSocket</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/QTextStream.FieldAlignment.html" title="enum in com.trolltech.qt.core">QTextStream.FieldAlignment</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum specifies how to align text in fields when the field is wider than the text that occupies it.</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/QTextStream.NumberFlag.html" title="enum in com.trolltech.qt.core">QTextStream.NumberFlag</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum specifies various flags that can be set to affect the output of integers, <tt>float</tt>s, and <tt>double</tt>s.</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/QTextStream.NumberFlags.html" title="class in com.trolltech.qt.core">QTextStream.NumberFlags</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>
<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/QTextStream.RealNumberNotation.html" title="enum in com.trolltech.qt.core">QTextStream.RealNumberNotation</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum specifies which notations to use for expressing <tt>float</tt> and <tt>double</tt> as strings.</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/QTextStream.Status.html" title="enum in com.trolltech.qt.core">QTextStream.Status</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the current status of the text stream.</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><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#QTextStream()">QTextStream</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray)">QTextStream</A></B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;array)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a>(<tt>array</tt>, QIODevice::ReadOnly).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)">QTextStream</A></B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;array,
            <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;openMode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> that operates on <tt>array</tt>, using <tt>openMode</tt> to define the open mode.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#QTextStream(com.trolltech.qt.core.QIODevice)">QTextStream</A></B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;device)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> that operates on <tt>device</tt>.</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;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#atEnd()">atEnd</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if there is no more data to be read from the <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a>; 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/QTextStream.html#autoDetectUnicode()">autoDetectUnicode</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if automatic Unicode detection is enabled; otherwise returns false.</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/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#codec()">codec</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the codec that is current assigned to the stream.</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/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#device()">device</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current device associated with the <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a>, or 0 if no device has been assigned.</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/QTextStream.FieldAlignment.html" title="enum in com.trolltech.qt.core">QTextStream.FieldAlignment</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#fieldAlignment()">fieldAlignment</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current field alignment.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#fieldWidth()">fieldWidth</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current field width.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#flush()">flush</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flushes any buffered data waiting to be written to the device.</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/QTextStream.html" title="class in com.trolltech.qt.core">QTextStream</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.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 QTextStream instance pointed to by nativePointer</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/QTextStream.html#generateByteOrderMark()">generateByteOrderMark</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> is set to generate the UTF-16 BOM (Byte Order Mark) when using a UTF-16 codec; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#integerBase()">integerBase</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current base of integers.</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/QTextStream.NumberFlags.html" title="class in com.trolltech.qt.core">QTextStream.NumberFlags</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#numberFlags()">numberFlags</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current number flags.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;char</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#padChar()">padChar</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current pad character.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#pos()">pos</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the device position corresponding to the current position of the stream, or -1 if an error occurs (e.g&#x2e;, if there is no device or string, or if there's a device error).</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/QTextStream.html#read(long)">read</A></B>(long&nbsp;maxlen)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads at most <tt>maxlen</tt> characters from the stream, and returns the data read as a <a href="%2E%2E/porting4.html#qstring"><tt>QString</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/QTextStream.html#readAll()">readAll</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the entire content of the stream, and returns it as a <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;byte</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#readByte()">readByte</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a byte from the stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#readDouble()">readDouble</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a double from the stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#readFloat()">readFloat</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a float from the stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#readInt()">readInt</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads an int from the stream.</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/QTextStream.html#readLine()">readLine</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QTextStream.html#readLine(long)"><tt>readLine</tt></a>(0).</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/QTextStream.html#readLine(long)">readLine</A></B>(long&nbsp;maxlen)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads one line of text from the stream, and returns it as a <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#readLong()">readLong</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a long from the stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;short</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#readShort()">readShort</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a short from the stream</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/QTextStream.html#readString()">readString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a String from the stream.</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/QTextStream.RealNumberNotation.html" title="enum in com.trolltech.qt.core">QTextStream.RealNumberNotation</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#realNumberNotation()">realNumberNotation</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current real number notation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#realNumberPrecision()">realNumberPrecision</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current real number precision, or the number of fraction digits <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> will write when generating real numbers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#reset()">reset</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a>'s formatting options, bringing it back to its original constructed state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#resetStatus()">resetStatus</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets the status of the text stream.</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/QTextStream.html#seek(long)">seek</A></B>(long&nbsp;pos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Seeks to the position <tt>pos</tt> in the device.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#setAutoDetectUnicode(boolean)">setAutoDetectUnicode</A></B>(boolean&nbsp;enabled)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If <tt>enabled</tt> is true, <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> will attempt to detect Unicode encoding by peeking into the stream data to see if it can find the UTF-16 BOM (Byte Order Mark).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#setCodec(com.trolltech.qt.core.QTextCodec)">setCodec</A></B>(<A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A>&nbsp;codec)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the codec for this stream to <tt>codec</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#setCodec(java.lang.String)">setCodec</A></B>(java.lang.String&nbsp;codecName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the codec for this stream to the QTextCodec for the encoding
specified by <tt>codecName</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#setDevice(com.trolltech.qt.core.QIODevice)">setDevice</A></B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;device)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current device to <tt>device</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#setFieldAlignment(com.trolltech.qt.core.QTextStream.FieldAlignment)">setFieldAlignment</A></B>(<A HREF="../../../../com/trolltech/qt/core/QTextStream.FieldAlignment.html" title="enum in com.trolltech.qt.core">QTextStream.FieldAlignment</A>&nbsp;alignment)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the field alignment to <tt>alignment</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#setFieldWidth(int)">setFieldWidth</A></B>(int&nbsp;width)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current field width to <tt>width</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#setGenerateByteOrderMark(boolean)">setGenerateByteOrderMark</A></B>(boolean&nbsp;generate)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If <tt>generate</tt> is true and a UTF-16 codec is used, <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> will insert the BOM (Byte Order Mark) before any data has been written to the device.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#setIntegerBase(int)">setIntegerBase</A></B>(int&nbsp;base)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the base of integers to <tt>base</tt>, both for reading and for generating numbers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlag...)">setNumberFlags</A></B>(<A HREF="../../../../com/trolltech/qt/core/QTextStream.NumberFlag.html" title="enum in com.trolltech.qt.core">QTextStream.NumberFlag</A>...&nbsp;flags)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current number flags to <tt>flags</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)">setNumberFlags</A></B>(<A HREF="../../../../com/trolltech/qt/core/QTextStream.NumberFlags.html" title="class in com.trolltech.qt.core">QTextStream.NumberFlags</A>&nbsp;flags)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current number flags to <tt>flags</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#setPadChar(char)">setPadChar</A></B>(char&nbsp;ch)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the pad character to <tt>ch</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#setRealNumberNotation(com.trolltech.qt.core.QTextStream.RealNumberNotation)">setRealNumberNotation</A></B>(<A HREF="../../../../com/trolltech/qt/core/QTextStream.RealNumberNotation.html" title="enum in com.trolltech.qt.core">QTextStream.RealNumberNotation</A>&nbsp;notation)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the real number notation to <tt>notation</tt> (<a href="QTextStream.html#RealNumberNotation-enum"><tt>SmartNotation</tt></a>, <a href="QTextStream.html#RealNumberNotation-enum"><tt>FixedNotation</tt></a>, <a href="QTextStream.html#RealNumberNotation-enum"><tt>ScientificNotation</tt></a>).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#setRealNumberPrecision(int)">setRealNumberPrecision</A></B>(int&nbsp;precision)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the precision of real numbers to <tt>precision</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#setStatus(com.trolltech.qt.core.QTextStream.Status)">setStatus</A></B>(<A HREF="../../../../com/trolltech/qt/core/QTextStream.Status.html" title="enum in com.trolltech.qt.core">QTextStream.Status</A>&nbsp;status)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the status of the text stream to the <tt>status</tt> given.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#skipWhiteSpace()">skipWhiteSpace</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads and discards whitespace from the stream until either a non-space character is detected, or until <a href="QTextStream.html#atEnd()"><tt>atEnd</tt></a> returns true.</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/QTextStream.Status.html" title="enum in com.trolltech.qt.core">QTextStream.Status</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#status()">status</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the status of the text stream.</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/QTextStream.html" title="class in com.trolltech.qt.core">QTextStream</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#writeBoolean(boolean)">writeBoolean</A></B>(boolean&nbsp;b)</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>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTextStream.html" title="class in com.trolltech.qt.core">QTextStream</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#writeByte(byte)">writeByte</A></B>(byte&nbsp;ch)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts <tt>ch</tt> from ASCII to a QChar, then writes it to the stream.</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/QTextStream.html" title="class in com.trolltech.qt.core">QTextStream</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#writeDouble(double)">writeDouble</A></B>(double&nbsp;f)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the double <tt>f</tt> to the stream.</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/QTextStream.html" title="class in com.trolltech.qt.core">QTextStream</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#writeFloat(float)">writeFloat</A></B>(float&nbsp;f)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the real number <tt>f</tt> to the stream, then returns a reference to the <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</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/QTextStream.html" title="class in com.trolltech.qt.core">QTextStream</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#writeInt(int)">writeInt</A></B>(int&nbsp;i)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the signed int <tt>i</tt> to the stream.</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/QTextStream.html" title="class in com.trolltech.qt.core">QTextStream</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#writeLong(long)">writeLong</A></B>(long&nbsp;i)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the qlonglong <tt>i</tt> to the stream.</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/QTextStream.html" title="class in com.trolltech.qt.core">QTextStream</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#writeShort(short)">writeShort</A></B>(short&nbsp;s)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes <tt>s</tt> to the stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QTextStream.html#writeString(java.lang.String)">writeString</A></B>(java.lang.String&nbsp;string)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes <tt>string</tt> to the stream.</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="QTextStream(com.trolltech.qt.core.QIODevice)"><!-- --></A><H3>
QTextStream</H3>
<PRE>
public <B>QTextStream</B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;device)</PRE>
<DL>
<DD><p>Constructs a <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> that operates on <tt>device</tt>.</p>
<P>
</DL>
<HR>

<A NAME="QTextStream()"><!-- --></A><H3>
QTextStream</H3>
<PRE>
public <B>QTextStream</B>()</PRE>
<DL>
<DD><p>Constructs a <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a>. Before you can use it for reading or writing, you must assign a device or a string.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#setDevice(com.trolltech.qt.core.QIODevice)"><tt>setDevice</tt></a>, 
<tt>setString</tt></DL>
</DL>
<HR>

<A NAME="QTextStream(com.trolltech.qt.core.QByteArray)"><!-- --></A><H3>
QTextStream</H3>
<PRE>
public <B>QTextStream</B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;array)</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a>(<tt>array</tt>, QIODevice::ReadOnly).
<P>
</DL>
<HR>

<A NAME="QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><!-- --></A><H3>
QTextStream</H3>
<PRE>
public <B>QTextStream</B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;array,
                   <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;openMode)</PRE>
<DL>
<DD><p>Constructs a <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> that operates on <tt>array</tt>, using <tt>openMode</tt> to define the open mode. The array is accessed as read-only, regardless of the values in <tt>openMode</tt>.</p>
<p>This constructor is convenient for working on constant strings. Example:</p>
<pre>    int main(int argc, char *argv[])
    {
        <span class="comment">// read numeric arguments (123, 0x20, 4.5...)</span>
        for (int i = 1; i &lt; argc; ++i) {
              int number;
              QTextStream in(argv[i]);
              in &gt;&gt; number;
              ...
        }
    }</pre>
<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="atEnd()"><!-- --></A><H3>
atEnd</H3>
<PRE>
public final boolean <B>atEnd</B>()</PRE>
<DL>
<DD><p>Returns true if there is no more data to be read from the <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a>; otherwise returns false. This is similar to, but not the same as calling QIODevice::atEnd(), as <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> also takes into account its internal Unicode buffer.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="autoDetectUnicode()"><!-- --></A><H3>
autoDetectUnicode</H3>
<PRE>
public final boolean <B>autoDetectUnicode</B>()</PRE>
<DL>
<DD><p>Returns true if automatic Unicode detection is enabled; otherwise returns false.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#setAutoDetectUnicode(boolean)"><tt>setAutoDetectUnicode</tt></a>, 
<a href="QTextStream.html#setCodec(com.trolltech.qt.core.QTextCodec)"><tt>setCodec</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="codec()"><!-- --></A><H3>
codec</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A> <B>codec</B>()</PRE>
<DL>
<DD><p>Returns the codec that is current assigned to the stream.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#setCodec(com.trolltech.qt.core.QTextCodec)"><tt>setCodec</tt></a>, 
<a href="QTextStream.html#setAutoDetectUnicode(boolean)"><tt>setAutoDetectUnicode</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="device()"><!-- --></A><H3>
device</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A> <B>device</B>()</PRE>
<DL>
<DD><p>Returns the current device associated with the <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a>, or 0 if no device has been assigned.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#setDevice(com.trolltech.qt.core.QIODevice)"><tt>setDevice</tt></a>, 
<tt>string</tt></DL>
</DD>
</DL>
<HR>

<A NAME="fieldAlignment()"><!-- --></A><H3>
fieldAlignment</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QTextStream.FieldAlignment.html" title="enum in com.trolltech.qt.core">QTextStream.FieldAlignment</A> <B>fieldAlignment</B>()</PRE>
<DL>
<DD><p>Returns the current field alignment.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#setFieldAlignment(com.trolltech.qt.core.QTextStream.FieldAlignment)"><tt>setFieldAlignment</tt></a>, 
<a href="QTextStream.html#fieldWidth()"><tt>fieldWidth</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="fieldWidth()"><!-- --></A><H3>
fieldWidth</H3>
<PRE>
public final int <B>fieldWidth</B>()</PRE>
<DL>
<DD><p>Returns the current field width.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#setFieldWidth(int)"><tt>setFieldWidth</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="flush()"><!-- --></A><H3>
flush</H3>
<PRE>
public final void <B>flush</B>()</PRE>
<DL>
<DD><p>Flushes any buffered data waiting to be written to the device.</p>
<p>If <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> operates on a string, this function does nothing.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="generateByteOrderMark()"><!-- --></A><H3>
generateByteOrderMark</H3>
<PRE>
public final boolean <B>generateByteOrderMark</B>()</PRE>
<DL>
<DD><p>Returns true if <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> is set to generate the UTF-16 BOM (Byte Order Mark) when using a UTF-16 codec; otherwise returns false.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#setGenerateByteOrderMark(boolean)"><tt>setGenerateByteOrderMark</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="integerBase()"><!-- --></A><H3>
integerBase</H3>
<PRE>
public final int <B>integerBase</B>()</PRE>
<DL>
<DD><p>Returns the current base of integers. 0 means that the base is detected when reading, or 10 (decimal) when generating numbers.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#setIntegerBase(int)"><tt>setIntegerBase</tt></a>, 
<tt>QString::number</tt>, 
<a href="QTextStream.html#numberFlags()"><tt>numberFlags</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="numberFlags()"><!-- --></A><H3>
numberFlags</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QTextStream.NumberFlags.html" title="class in com.trolltech.qt.core">QTextStream.NumberFlags</A> <B>numberFlags</B>()</PRE>
<DL>
<DD><p>Returns the current number flags.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><tt>setNumberFlags</tt></a>, 
<a href="QTextStream.html#integerBase()"><tt>integerBase</tt></a>, 
<a href="QTextStream.html#realNumberNotation()"><tt>realNumberNotation</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="writeByte(byte)"><!-- --></A><H3>
writeByte</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QTextStream.html" title="class in com.trolltech.qt.core">QTextStream</A> <B>writeByte</B>(byte&nbsp;ch)</PRE>
<DL>
<DD><p>Converts <tt>ch</tt> from ASCII to a QChar, then writes it to the stream.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="writeLong(long)"><!-- --></A><H3>
writeLong</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QTextStream.html" title="class in com.trolltech.qt.core">QTextStream</A> <B>writeLong</B>(long&nbsp;i)</PRE>
<DL>
<DD><p>Writes the qlonglong <tt>i</tt> to the stream.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="writeInt(int)"><!-- --></A><H3>
writeInt</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QTextStream.html" title="class in com.trolltech.qt.core">QTextStream</A> <B>writeInt</B>(int&nbsp;i)</PRE>
<DL>
<DD><p>Writes the signed int <tt>i</tt> to the stream.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="writeDouble(double)"><!-- --></A><H3>
writeDouble</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QTextStream.html" title="class in com.trolltech.qt.core">QTextStream</A> <B>writeDouble</B>(double&nbsp;f)</PRE>
<DL>
<DD><p>Writes the double <tt>f</tt> to the stream.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="writeBoolean(boolean)"><!-- --></A><H3>
writeBoolean</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QTextStream.html" title="class in com.trolltech.qt.core">QTextStream</A> <B>writeBoolean</B>(boolean&nbsp;b)</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="writeFloat(float)"><!-- --></A><H3>
writeFloat</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QTextStream.html" title="class in com.trolltech.qt.core">QTextStream</A> <B>writeFloat</B>(float&nbsp;f)</PRE>
<DL>
<DD><p>Writes the real number <tt>f</tt> to the stream, then returns a reference to the <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a>. By default, <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> stores it using <a href="QTextStream.html#RealNumberNotation-enum"><tt>SmartNotation</tt></a>, with up to 6 digits of precision. You can change the textual representation <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> will use for real numbers by calling <a href="QTextStream.html#setRealNumberNotation(com.trolltech.qt.core.QTextStream.RealNumberNotation)"><tt>setRealNumberNotation</tt></a>, <a href="QTextStream.html#setRealNumberPrecision(int)"><tt>setRealNumberPrecision</tt></a> and <a href="QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><tt>setNumberFlags</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#setFieldWidth(int)"><tt>setFieldWidth</tt></a>, 
<a href="QTextStream.html#setRealNumberNotation(com.trolltech.qt.core.QTextStream.RealNumberNotation)"><tt>setRealNumberNotation</tt></a>, 
<a href="QTextStream.html#setRealNumberPrecision(int)"><tt>setRealNumberPrecision</tt></a>, 
<a href="QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><tt>setNumberFlags</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="padChar()"><!-- --></A><H3>
padChar</H3>
<PRE>
public final char <B>padChar</B>()</PRE>
<DL>
<DD><p>Returns the current pad character.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#setPadChar(char)"><tt>setPadChar</tt></a>, 
<a href="QTextStream.html#setFieldWidth(int)"><tt>setFieldWidth</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="pos()"><!-- --></A><H3>
pos</H3>
<PRE>
public final long <B>pos</B>()</PRE>
<DL>
<DD><p>Returns the device position corresponding to the current position of the stream, or -1 if an error occurs (e.g&#x2e;, if there is no device or string, or if there's a device error).</p>
<p>Because <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> is buffered, this function may have to seek the device to reconstruct a valid device position. This operation can be expensive, so you may want to avoid calling this function in a tight loop.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#seek(long)"><tt>seek</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="read(long)"><!-- --></A><H3>
read</H3>
<PRE>
public final java.lang.String <B>read</B>(long&nbsp;maxlen)</PRE>
<DL>
<DD><p>Reads at most <tt>maxlen</tt> characters from the stream, and returns the data read as a <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#readAll()"><tt>readAll</tt></a>, 
<a href="QTextStream.html#readLine(long)"><tt>readLine</tt></a>, 
<tt>QIODevice::read</tt></DL>
</DD>
</DL>
<HR>

<A NAME="readAll()"><!-- --></A><H3>
readAll</H3>
<PRE>
public final java.lang.String <B>readAll</B>()</PRE>
<DL>
<DD><p>Reads the entire content of the stream, and returns it as a <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a>. Avoid this function when working on large files, as it will consume a significant amount of memory.</p>
<p>Calling <a href="QTextStream.html#readLine(long)"><tt>readLine</tt></a> is better if you do not know how much data is available.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#readLine(long)"><tt>readLine</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="readLine()"><!-- --></A><H3>
readLine</H3>
<PRE>
public final java.lang.String <B>readLine</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QTextStream.html#readLine(long)"><tt>readLine</tt></a>(0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readLine(long)"><!-- --></A><H3>
readLine</H3>
<PRE>
public final java.lang.String <B>readLine</B>(long&nbsp;maxlen)</PRE>
<DL>
<DD><p>Reads one line of text from the stream, and returns it as a <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a>. The maximum allowed line length is set to <tt>maxlen</tt>. If the stream contains lines longer than this, then the lines will be split after <tt>maxlen</tt> characters and returned in parts.</p>
<p>If <tt>maxlen</tt> is 0, the lines can be of any length. A common value for <tt>maxlen</tt> is 75.</p>
<p>The returned line has no trailing end-of-line characters (&quot;\n&quot; or &quot;\r\n&quot;), so calling QString::trimmed() is unnecessary.</p>
<p>If the stream has read to the end of the file, <a href="QTextStream.html#readLine(long)"><tt>readLine</tt></a> will return a null <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a>. For strings, or for devices that support it, you can explicitly test for the end of the stream using <a href="QTextStream.html#atEnd()"><tt>atEnd</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#readAll()"><tt>readAll</tt></a>, 
<tt>QIODevice::readLine</tt></DL>
</DD>
</DL>
<HR>

<A NAME="realNumberNotation()"><!-- --></A><H3>
realNumberNotation</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QTextStream.RealNumberNotation.html" title="enum in com.trolltech.qt.core">QTextStream.RealNumberNotation</A> <B>realNumberNotation</B>()</PRE>
<DL>
<DD><p>Returns the current real number notation.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#setRealNumberNotation(com.trolltech.qt.core.QTextStream.RealNumberNotation)"><tt>setRealNumberNotation</tt></a>, 
<a href="QTextStream.html#realNumberPrecision()"><tt>realNumberPrecision</tt></a>, 
<a href="QTextStream.html#numberFlags()"><tt>numberFlags</tt></a>, 
<a href="QTextStream.html#integerBase()"><tt>integerBase</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="realNumberPrecision()"><!-- --></A><H3>
realNumberPrecision</H3>
<PRE>
public final int <B>realNumberPrecision</B>()</PRE>
<DL>
<DD><p>Returns the current real number precision, or the number of fraction digits <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> will write when generating real numbers.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#setRealNumberPrecision(int)"><tt>setRealNumberPrecision</tt></a>, 
<a href="QTextStream.html#setRealNumberNotation(com.trolltech.qt.core.QTextStream.RealNumberNotation)"><tt>setRealNumberNotation</tt></a>, 
<a href="QTextStream.html#realNumberNotation()"><tt>realNumberNotation</tt></a>, 
<a href="QTextStream.html#numberFlags()"><tt>numberFlags</tt></a>, 
<a href="QTextStream.html#integerBase()"><tt>integerBase</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="reset()"><!-- --></A><H3>
reset</H3>
<PRE>
public final void <B>reset</B>()</PRE>
<DL>
<DD><p>Resets <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a>'s formatting options, bringing it back to its original constructed state. The device, string and any buffered data is left untouched.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="resetStatus()"><!-- --></A><H3>
resetStatus</H3>
<PRE>
public final void <B>resetStatus</B>()</PRE>
<DL>
<DD><p>Resets the status of the text stream.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QTextStream::Status</tt>, 
<a href="QTextStream.html#status()"><tt>status</tt></a>, 
<a href="QTextStream.html#setStatus(com.trolltech.qt.core.QTextStream.Status)"><tt>setStatus</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="seek(long)"><!-- --></A><H3>
seek</H3>
<PRE>
public final boolean <B>seek</B>(long&nbsp;pos)</PRE>
<DL>
<DD><p>Seeks to the position <tt>pos</tt> in the device. Returns true on success; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setAutoDetectUnicode(boolean)"><!-- --></A><H3>
setAutoDetectUnicode</H3>
<PRE>
public final void <B>setAutoDetectUnicode</B>(boolean&nbsp;enabled)</PRE>
<DL>
<DD><p>If <tt>enabled</tt> is true, <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> will attempt to detect Unicode encoding by peeking into the stream data to see if it can find the UTF-16 BOM (Byte Order Mark). If this mark is found, <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> will replace the current codec with the UTF-16 codec.</p>
<p>This function can be used together with <a href="QTextStream.html#setCodec(com.trolltech.qt.core.QTextCodec)"><tt>setCodec</tt></a>. It is common to set the codec to UTF-8, and then enable UTF-16 detection.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#autoDetectUnicode()"><tt>autoDetectUnicode</tt></a>, 
<a href="QTextStream.html#setCodec(com.trolltech.qt.core.QTextCodec)"><tt>setCodec</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setCodec(com.trolltech.qt.core.QTextCodec)"><!-- --></A><H3>
setCodec</H3>
<PRE>
public final void <B>setCodec</B>(<A HREF="../../../../com/trolltech/qt/core/QTextCodec.html" title="class in com.trolltech.qt.core">QTextCodec</A>&nbsp;codec)</PRE>
<DL>
<DD><p>Sets the codec for this stream to <tt>codec</tt>. The codec is used for decoding any data that is read from the assigned device, and for encoding any data that is written. By default, QTextCodec::codecForLocale() is used, and automatic unicode detection is enabled.</p>
<p>If <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> operates on a string, this function does nothing.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#codec()"><tt>codec</tt></a>, 
<a href="QTextStream.html#setAutoDetectUnicode(boolean)"><tt>setAutoDetectUnicode</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setDevice(com.trolltech.qt.core.QIODevice)"><!-- --></A><H3>
setDevice</H3>
<PRE>
public final void <B>setDevice</B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;device)</PRE>
<DL>
<DD><p>Sets the current device to <tt>device</tt>. If a device has already been assigned, <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> will call <a href="QTextStream.html#flush()"><tt>flush</tt></a> before the old device is replaced.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#device()"><tt>device</tt></a>, 
<tt>setString</tt></DL>
</DD>
</DL>
<HR>

<A NAME="setFieldAlignment(com.trolltech.qt.core.QTextStream.FieldAlignment)"><!-- --></A><H3>
setFieldAlignment</H3>
<PRE>
public final void <B>setFieldAlignment</B>(<A HREF="../../../../com/trolltech/qt/core/QTextStream.FieldAlignment.html" title="enum in com.trolltech.qt.core">QTextStream.FieldAlignment</A>&nbsp;alignment)</PRE>
<DL>
<DD><p>Sets the field alignment to <tt>alignment</tt>. When used together with <a href="QTextStream.html#setFieldWidth(int)"><tt>setFieldWidth</tt></a>, this function allows you to generate formatted output with text aligned to the left, to the right or center aligned.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#fieldAlignment()"><tt>fieldAlignment</tt></a>, 
<a href="QTextStream.html#setFieldWidth(int)"><tt>setFieldWidth</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setFieldWidth(int)"><!-- --></A><H3>
setFieldWidth</H3>
<PRE>
public final void <B>setFieldWidth</B>(int&nbsp;width)</PRE>
<DL>
<DD><p>Sets the current field width to <tt>width</tt>. If <tt>width</tt> is 0 (the default), the field width is equal to the length of the generated text.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#fieldWidth()"><tt>fieldWidth</tt></a>, 
<a href="QTextStream.html#setPadChar(char)"><tt>setPadChar</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setGenerateByteOrderMark(boolean)"><!-- --></A><H3>
setGenerateByteOrderMark</H3>
<PRE>
public final void <B>setGenerateByteOrderMark</B>(boolean&nbsp;generate)</PRE>
<DL>
<DD><p>If <tt>generate</tt> is true and a UTF-16 codec is used, <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> will insert the BOM (Byte Order Mark) before any data has been written to the device. If <tt>generate</tt> is false, no BOM will be inserted. This function must be called before any data is written. Otherwise, it does nothing.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#generateByteOrderMark()"><tt>generateByteOrderMark</tt></a>, 
<tt>bom</tt></DL>
</DD>
</DL>
<HR>

<A NAME="setIntegerBase(int)"><!-- --></A><H3>
setIntegerBase</H3>
<PRE>
public final void <B>setIntegerBase</B>(int&nbsp;base)</PRE>
<DL>
<DD><p>Sets the base of integers to <tt>base</tt>, both for reading and for generating numbers. <tt>base</tt> can be either 2 (binary), 8 (octal), 10 (decimal) or 16 (hexadecimal). If <tt>base</tt> is 0, <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> will attempt to detect the base by inspecting the data on the stream. When generating numbers, <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> assumes base is 10 unless the base has been set explicitly.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#integerBase()"><tt>integerBase</tt></a>, 
<tt>QString::number</tt>, 
<a href="QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><tt>setNumberFlags</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlag...)"><!-- --></A><H3>
setNumberFlags</H3>
<PRE>
public final void <B>setNumberFlags</B>(<A HREF="../../../../com/trolltech/qt/core/QTextStream.NumberFlag.html" title="enum in com.trolltech.qt.core">QTextStream.NumberFlag</A>...&nbsp;flags)</PRE>
<DL>
<DD><p>Sets the current number flags to <tt>flags</tt>. <tt>flags</tt> is a set of flags from the <a href="QTextStream.html#NumberFlag-enum"><tt>NumberFlag</tt></a> enum, and describes options for formatting generated code (e.g&#x2e;, whether or not to always write the base or sign of a number).</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#numberFlags()"><tt>numberFlags</tt></a>, 
<a href="QTextStream.html#setIntegerBase(int)"><tt>setIntegerBase</tt></a>, 
<a href="QTextStream.html#setRealNumberNotation(com.trolltech.qt.core.QTextStream.RealNumberNotation)"><tt>setRealNumberNotation</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><!-- --></A><H3>
setNumberFlags</H3>
<PRE>
public final void <B>setNumberFlags</B>(<A HREF="../../../../com/trolltech/qt/core/QTextStream.NumberFlags.html" title="class in com.trolltech.qt.core">QTextStream.NumberFlags</A>&nbsp;flags)</PRE>
<DL>
<DD><p>Sets the current number flags to <tt>flags</tt>. <tt>flags</tt> is a set of flags from the <a href="QTextStream.html#NumberFlag-enum"><tt>NumberFlag</tt></a> enum, and describes options for formatting generated code (e.g&#x2e;, whether or not to always write the base or sign of a number).</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#numberFlags()"><tt>numberFlags</tt></a>, 
<a href="QTextStream.html#setIntegerBase(int)"><tt>setIntegerBase</tt></a>, 
<a href="QTextStream.html#setRealNumberNotation(com.trolltech.qt.core.QTextStream.RealNumberNotation)"><tt>setRealNumberNotation</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setPadChar(char)"><!-- --></A><H3>
setPadChar</H3>
<PRE>
public final void <B>setPadChar</B>(char&nbsp;ch)</PRE>
<DL>
<DD><p>Sets the pad character to <tt>ch</tt>. The default value is the ASCII space character (' '), or QChar(0x20). This character is used to fill in the space in fields when generating text.</p>
<p>Example:</p>
<pre>    QString s;
    QTextStream out(&amp;s);
    out.setFieldWidth(10);
    out.setPadChar('-');
    out &lt;&lt; &quot;Qt&quot; &lt;&lt; endl &lt;&lt; &quot;rocks!&quot; &lt;&lt; endl;</pre>
<p>Output:</p>
<pre>    ----Qt----
    --rocks!--</pre>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#padChar()"><tt>padChar</tt></a>, 
<a href="QTextStream.html#setFieldWidth(int)"><tt>setFieldWidth</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setRealNumberNotation(com.trolltech.qt.core.QTextStream.RealNumberNotation)"><!-- --></A><H3>
setRealNumberNotation</H3>
<PRE>
public final void <B>setRealNumberNotation</B>(<A HREF="../../../../com/trolltech/qt/core/QTextStream.RealNumberNotation.html" title="enum in com.trolltech.qt.core">QTextStream.RealNumberNotation</A>&nbsp;notation)</PRE>
<DL>
<DD><p>Sets the real number notation to <tt>notation</tt> (<a href="QTextStream.html#RealNumberNotation-enum"><tt>SmartNotation</tt></a>, <a href="QTextStream.html#RealNumberNotation-enum"><tt>FixedNotation</tt></a>, <a href="QTextStream.html#RealNumberNotation-enum"><tt>ScientificNotation</tt></a>). When reading and generating numbers, <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> uses this value to detect the formatting of real numbers.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#realNumberNotation()"><tt>realNumberNotation</tt></a>, 
<a href="QTextStream.html#setRealNumberPrecision(int)"><tt>setRealNumberPrecision</tt></a>, 
<a href="QTextStream.html#setNumberFlags(com.trolltech.qt.core.QTextStream.NumberFlags)"><tt>setNumberFlags</tt></a>, 
<a href="QTextStream.html#setIntegerBase(int)"><tt>setIntegerBase</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setRealNumberPrecision(int)"><!-- --></A><H3>
setRealNumberPrecision</H3>
<PRE>
public final void <B>setRealNumberPrecision</B>(int&nbsp;precision)</PRE>
<DL>
<DD><p>Sets the precision of real numbers to <tt>precision</tt>. This value describes the number of fraction digits <a href="QTextStream.html#QTextStream(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>QTextStream</tt></a> should write when generating real numbers.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#realNumberPrecision()"><tt>realNumberPrecision</tt></a>, 
<a href="QTextStream.html#setRealNumberNotation(com.trolltech.qt.core.QTextStream.RealNumberNotation)"><tt>setRealNumberNotation</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setStatus(com.trolltech.qt.core.QTextStream.Status)"><!-- --></A><H3>
setStatus</H3>
<PRE>
public final void <B>setStatus</B>(<A HREF="../../../../com/trolltech/qt/core/QTextStream.Status.html" title="enum in com.trolltech.qt.core">QTextStream.Status</A>&nbsp;status)</PRE>
<DL>
<DD><p>Sets the status of the text stream to the <tt>status</tt> given.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html#Status-enum">Status</tt></a>, 
<a href="QTextStream.html#status()"><tt>status</tt></a>, 
<a href="QTextStream.html#resetStatus()"><tt>resetStatus</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="skipWhiteSpace()"><!-- --></A><H3>
skipWhiteSpace</H3>
<PRE>
public final void <B>skipWhiteSpace</B>()</PRE>
<DL>
<DD><p>Reads and discards whitespace from the stream until either a non-space character is detected, or until <a href="QTextStream.html#atEnd()"><tt>atEnd</tt></a> returns true. This function is useful when reading a stream character by character.</p>
<p>Whitespace characters are all characters for which QChar::isSpace() returns true.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>operator&gt;&gt;</tt></DL>
</DD>
</DL>
<HR>

<A NAME="status()"><!-- --></A><H3>
status</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QTextStream.Status.html" title="enum in com.trolltech.qt.core">QTextStream.Status</A> <B>status</B>()</PRE>
<DL>
<DD><p>Returns the status of the text stream.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QTextStream::Status</tt>, 
<a href="QTextStream.html#setStatus(com.trolltech.qt.core.QTextStream.Status)"><tt>setStatus</tt></a>, 
<a href="QTextStream.html#resetStatus()"><tt>resetStatus</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/QTextStream.html" title="class in com.trolltech.qt.core">QTextStream</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 QTextStream 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="setCodec(java.lang.String)"><!-- --></A><H3>
setCodec</H3>
<PRE>
public final void <B>setCodec</B>(java.lang.String&nbsp;codecName)</PRE>
<DL>
<DD>Sets the codec for this stream to the QTextCodec for the encoding
specified by <tt>codecName</tt>. Common values for <b>codecName</b>
include "ISO 8859-1", "UTF-8", and "UTF-16". If the encoding isn't
recognized, nothing happens.
<p>
Example:
<p>
<code>
<pre>
    QTextStream out(&file);
    out.setCodec("UTF-8");
</pre>
</code>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readByte()"><!-- --></A><H3>
readByte</H3>
<PRE>
public final byte <B>readByte</B>()</PRE>
<DL>
<DD>Reads a byte from the stream.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readShort()"><!-- --></A><H3>
readShort</H3>
<PRE>
public final short <B>readShort</B>()</PRE>
<DL>
<DD>Reads a short from the stream
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readInt()"><!-- --></A><H3>
readInt</H3>
<PRE>
public final int <B>readInt</B>()</PRE>
<DL>
<DD>Reads an int from the stream.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readLong()"><!-- --></A><H3>
readLong</H3>
<PRE>
public final long <B>readLong</B>()</PRE>
<DL>
<DD>Reads a long from the stream.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readFloat()"><!-- --></A><H3>
readFloat</H3>
<PRE>
public final float <B>readFloat</B>()</PRE>
<DL>
<DD>Reads a float from the stream.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readDouble()"><!-- --></A><H3>
readDouble</H3>
<PRE>
public final double <B>readDouble</B>()</PRE>
<DL>
<DD>Reads a double from the stream.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="writeShort(short)"><!-- --></A><H3>
writeShort</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QTextStream.html" title="class in com.trolltech.qt.core">QTextStream</A> <B>writeShort</B>(short&nbsp;s)</PRE>
<DL>
<DD>Writes <tt>s</tt> to the stream.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readString()"><!-- --></A><H3>
readString</H3>
<PRE>
public final java.lang.String <B>readString</B>()</PRE>
<DL>
<DD>Reads a String from the stream.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="writeString(java.lang.String)"><!-- --></A><H3>
writeString</H3>
<PRE>
public final void <B>writeString</B>(java.lang.String&nbsp;string)</PRE>
<DL>
<DD>Writes <tt>string</tt> to the stream.
<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/QTextEncoder.html" title="class in com.trolltech.qt.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QTextStream.FieldAlignment.html" title="enum 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/QTextStream.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QTextStream.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>