Sophie

Sophie

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

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:38 CEST 2007 -->
<TITLE>
QFile
</TITLE>

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

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

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QFile";
}
</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/QEventLoop.ProcessEventsFlags.html" title="class in com.trolltech.qt.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QFile.FileError.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/QFile.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QFile.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;<A HREF="#fields_inherited_from_class_com.trolltech.qt.core.QIODevice">FIELD</A>&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 QFile</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 "><A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">com.trolltech.qt.core.QObject</A>
              <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">com.trolltech.qt.core.QIODevice</A>
                  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.core.QFile</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>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../com/trolltech/qt/core/QTemporaryFile.html" title="class in com.trolltech.qt.core">QTemporaryFile</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>QFile</B><DT>extends <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></DL>
</PRE>

<P>
<p>The <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a> class provides an interface for reading from and writing to files.</p>
<p><a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a> is an I/O device for reading and writing text and binary files and <a href="%2E%2E/resources.html">resources</tt></a>. A <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a> may be used by itself or, more conveniently, with a <a href="QTextStream.html"><tt>QTextStream</tt></a> or <a href="QDataStream.html"><tt>QDataStream</tt></a>.</p>
<p>The file name is usually passed in the constructor, but it can be set at any time using <a href="QFile.html#setFileName(java.lang.String)"><tt>setFileName</tt></a>. You can check for a file's existence using <a href="QFile.html#exists(java.lang.String)"><tt>exists</tt></a>, and remove a file using <a href="QFile.html#remove(java.lang.String)"><tt>remove</tt></a>. (More advanced file system related operations are provided by <a href="QFileInfo.html"><tt>QFileInfo</tt></a> and <a href="QDir.html"><tt>QDir</tt></a>.)</p>
<p>The file is opened with <a href="QFile.html#open(com.trolltech.qt.core.QIODevice.OpenMode)"><tt>open</tt></a>, closed with <a href="QFile.html#close()"><tt>close</tt></a>, and flushed with <a href="QFile.html#flush()"><tt>flush</tt></a>. Data is usually read and written using <a href="QDataStream.html"><tt>QDataStream</tt></a> or <a href="QTextStream.html"><tt>QTextStream</tt></a>, but you can also call the <a href="QIODevice.html#QIODevice(com.trolltech.qt.core.QObject)"><tt>QIODevice</tt></a>-inherited functions <a href="QIODevice.html#read(long)"><tt>read</tt></a>, <a href="QIODevice.html#readLine(long)"><tt>readLine</tt></a>, <a href="QIODevice.html#readAll()"><tt>readAll</tt></a>, <a href="QIODevice.html#write(com.trolltech.qt.core.QByteArray)"><tt>write</tt></a>. <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a> also inherits getChar(), putChar(), and ungetChar(), which work one character at a time.</p>
<p>The size of the file is returned by <a href="QFile.html#size()"><tt>size</tt></a>. You can get the current file position using <a href="QFile.html#pos()"><tt>pos</tt></a>, or move to a new file position using <a href="QFile.html#seek(long)"><tt>seek</tt></a>. If you've reached the end of the file, <a href="QFile.html#atEnd()"><tt>atEnd</tt></a> returns true.</p>
<a name="reading-files-directly"></a>
<h3>Reading Files Directly</h3>
<p>The following example reads a text file line by line:</p>
<pre>        QFile file(&quot;in.txt&quot;);
        if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
            return;

        while (!file.atEnd()) {
            QByteArray line = file.readLine();
            process_line(line);
        }</pre>
<p>The QIODevice::Text flag passed to <a href="QFile.html#open(com.trolltech.qt.core.QIODevice.OpenMode)"><tt>open</tt></a> tells Qt to convert Windows-style line terminators (&quot;\r\n&quot;) into C++-style terminators (&quot;\n&quot;). By default, <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a> assumes binary, i.e&#x2e; it doesn't perform any conversion on the bytes stored in the file.</p>
<a name="using-streams-to-read-files"></a>
<h3>Using Streams to Read Files</h3>
<p>The next example uses <a href="QTextStream.html"><tt>QTextStream</tt></a> to read a text file line by line:</p>
<pre>        QFile file(&quot;in.txt&quot;);
        if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
            return;

        QTextStream in(&amp;file);
        while (!in.atEnd()) {
            QString line = in.readLine();
            process_line(line);
        }</pre>
<p><a href="QTextStream.html"><tt>QTextStream</tt></a> takes care of converting the 8-bit data stored on disk into a 16-bit Unicode <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a>. By default, it assumes that the user system's local 8-bit encoding is used (e.g&#x2e;, ISO 8859-1 for most of Europe; see QTextCodec::codecForLocale() for details). This can be changed using setCodec().</p>
<p>To write text, we can use operator&lt;&lt;(), which is overloaded to take a <a href="QTextStream.html"><tt>QTextStream</tt></a> on the left and various data types (including <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a>) on the right:</p>
<pre>        QFile file(&quot;out.txt&quot;);
        if (!file.open(QIODevice::WriteOnly | QIODevice::Text))
            return;

        QTextStream out(&amp;file);
        out &lt;&lt; &quot;The magic number is: &quot; &lt;&lt; 49 &lt;&lt; &quot;\n&quot;;</pre>
<p><a href="QDataStream.html"><tt>QDataStream</tt></a> is similar, in that you can use operator&lt;&lt;() to write data and operator&gt;&gt;() to read it back. See the class documentation for details.</p>
<p>When you use <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a>, <a href="QFileInfo.html"><tt>QFileInfo</tt></a>, and <a href="QDir.html"><tt>QDir</tt></a> to access the file system with Qt, you can use Unicode file names. On Unix, these file names are converted to an 8-bit encoding. If you want to use standard C++ APIs (<tt>&lt;cstdio&gt;</tt> or <tt>&lt;iostream&gt;</tt>) or platform-specific APIs to access files instead of <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a>, you can use the <a href="QFile.html#encodeName(java.lang.String)"><tt>encodeName</tt></a> and <a href="QFile.html#decodeName(com.trolltech.qt.core.QByteArray)"><tt>decodeName</tt></a> functions to convert between Unicode file names and 8-bit file names.</p>
<p>On Unix, there are some special system files (e.g&#x2e; in <tt>/proc</tt>) for which <a href="QFile.html#size()"><tt>size</tt></a> will always return 0, yet you may still be able to read more data from such a file; the data is generated in direct response to you calling <a href="QIODevice.html#read(long)"><tt>read</tt></a>. In this case, however, you cannot use <a href="QFile.html#atEnd()"><tt>atEnd</tt></a> to determine if there is more data to read (since <a href="QFile.html#atEnd()"><tt>atEnd</tt></a> will return true for a file that claims to have size 0). Instead, you should either call <a href="QIODevice.html#readAll()"><tt>readAll</tt></a>, or call <a href="QIODevice.html#read(long)"><tt>read</tt></a> or <a href="QIODevice.html#readLine(long)"><tt>readLine</tt></a> repeatedly until no more data can be read. The next example uses <a href="QTextStream.html"><tt>QTextStream</tt></a> to read <tt>/proc/modules</tt> line by line:</p>
<pre>        QFile file(&quot;/proc/modules&quot;);
        if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
            return;

        QTextStream in(&amp;file);
        QString line = in.readLine();
        while (!line.isNull()) {
            process_line(line);
            line = in.readLine();
        }</pre>
<a name="signals"></a>
<h3>Signals</h3>
<p>Unlike other <a href="QIODevice.html#QIODevice(com.trolltech.qt.core.QObject)"><tt>QIODevice</tt></a> implementations, such as <a href="%2E%2E/network/QTcpSocket.html"><tt>QTcpSocket</tt></a>, <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a> does not emit the <a href="QFile.html#aboutToClose()"><tt>aboutToClose</tt></a>, <a href="QFile.html#bytesWritten(long)"><tt>bytesWritten</tt></a>, or <a href="QFile.html#readyRead()"><tt>readyRead</tt></a> signals. This implementation detail means that <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a> is not suitable for reading and writing certain types of files, such as device files on Unix platforms.</p>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><a href="QTextStream.html"><tt>QTextStream</tt></a>, 
<a href="QDataStream.html"><tt>QDataStream</tt></a>, 
<a href="QFileInfo.html"><tt>QFileInfo</tt></a>, 
<a href="QDir.html"><tt>QDir</tt></a>, 
<a href="%2E%2E/resources.html">The Qt Resource System</tt></a></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/QFile.FileError.html" title="enum in com.trolltech.qt.core">QFile.FileError</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the errors that may be returned by the <a href="QFile.html#error()"><tt>error</tt></a> function.</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/QFile.Permission.html" title="enum in com.trolltech.qt.core">QFile.Permission</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum is used by the permission() function to report the permissions and ownership of a file.</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/QFile.Permissions.html" title="class in com.trolltech.qt.core">QFile.Permissions</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This QFlag class provides flags for the int enum.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.core.QIODevice"><!-- --></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.core.<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenModeFlag.html" title="enum in com.trolltech.qt.core">QIODevice.OpenModeFlag</A></CODE></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;
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_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>Field Summary</B></FONT></TH>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_com.trolltech.qt.core.QIODevice"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#aboutToClose">aboutToClose</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#bytesWritten">bytesWritten</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readyRead">readyRead</A></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/QFile.html#QFile()">QFile</A></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><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#QFile(com.trolltech.qt.core.QObject)">QFile</A></B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new file object with the given <tt>parent</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#QFile(java.lang.String)">QFile</A></B>(java.lang.String&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new file object to represent the file with the given <tt>name</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#QFile(java.lang.String, com.trolltech.qt.core.QObject)">QFile</A></B>(java.lang.String&nbsp;name,
      <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new file object with the given <tt>parent</tt> to represent the file with the specified <tt>name</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/QFile.html#atEnd()">atEnd</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the end of the file has been reached; otherwise returns false.</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/QFile.html#close()">close</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function is reimplemented for internal reasons.</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/QFile.html#copy(java.lang.String)">copy</A></B>(java.lang.String&nbsp;newName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copies the file currently specified by <a href="QFile.html#fileName()"><tt>fileName</tt></a> to a file called <tt>newName</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#copy(java.lang.String, java.lang.String)">copy</A></B>(java.lang.String&nbsp;fileName,
     java.lang.String&nbsp;newName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copies the file <tt>fileName</tt> to <tt>newName</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#decodeName(com.trolltech.qt.core.QByteArray)">decodeName</A></B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;localFileName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This does the reverse of QFile::encodeName() using <tt>localFileName</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#decodeName(java.lang.String)">decodeName</A></B>(java.lang.String&nbsp;localFileName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Unicode version of the given <tt>localFileName</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#encodeName(java.lang.String)">encodeName</A></B>(java.lang.String&nbsp;fileName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;By default, this function converts <tt>fileName</tt> to the local 8-bit encoding determined by the user's locale.</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/QFile.FileError.html" title="enum in com.trolltech.qt.core">QFile.FileError</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#error()">error</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the file error status.</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/QFile.html#exists()">exists</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the file specified by <a href="QFile.html#fileName()"><tt>fileName</tt></a> exists; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#exists(java.lang.String)">exists</A></B>(java.lang.String&nbsp;fileName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the file specified by <tt>fileName</tt> exists; 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/QAbstractFileEngine.html" title="class in com.trolltech.qt.core">QAbstractFileEngine</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#fileEngine()">fileEngine</A></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;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#fileName()">fileName</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name set by <a href="QFile.html#setFileName(java.lang.String)"><tt>setFileName</tt></a>.</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/QFile.html#flush()">flush</A></B>()</CODE>

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

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the file handle of the file.</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/QFile.html#isSequential()">isSequential</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the file can only be manipulated sequentially; 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/QFile.html#link(java.lang.String)">link</A></B>(java.lang.String&nbsp;newName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a link named <tt>newName</tt> that points to the file currently specified by <a href="QFile.html#fileName()"><tt>fileName</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#link(java.lang.String, java.lang.String)">link</A></B>(java.lang.String&nbsp;oldname,
     java.lang.String&nbsp;newName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a link named <tt>newName</tt> that points to the file <tt>oldname</tt>.</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/QFile.html#open(int, com.trolltech.qt.core.QIODevice.OpenMode)">open</A></B>(int&nbsp;fd,
     <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;flags)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens the existing file descripter <tt>fd</tt> in the given <tt>flags</tt>.</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/QFile.html#open(int, com.trolltech.qt.core.QIODevice.OpenModeFlag...)">open</A></B>(int&nbsp;fd,
     <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenModeFlag.html" title="enum in com.trolltech.qt.core">QIODevice.OpenModeFlag</A>...&nbsp;flags)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens the existing file descripter <tt>fd</tt> in the given <tt>flags</tt>.</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/QFile.html#open(com.trolltech.qt.core.QIODevice.OpenMode)">open</A></B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;flags)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens the file using OpenMode <tt>flags</tt>, returning true if successful; otherwise 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/QFile.Permissions.html" title="class in com.trolltech.qt.core">QFile.Permissions</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#permissions()">permissions</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the complete OR-ed together combination of QFile::Permission for the file.</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/QFile.Permissions.html" title="class in com.trolltech.qt.core">QFile.Permissions</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#permissions(java.lang.String)">permissions</A></B>(java.lang.String&nbsp;filename)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the complete OR-ed together combination of QFile::Permission for <tt>filename</tt>.</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/QFile.html#pos()">pos</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function is reimplemented for internal reasons.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#readData(byte[])">readData</A></B>(byte[]&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QFile.html#readData(byte[])"><tt>readData</tt></a>(<tt>data</tt>, ).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#readLineData(byte[])">readLineData</A></B>(byte[]&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QFile.html#readLineData(byte[])"><tt>readLineData</tt></a>(<tt>data</tt>, ).</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/QFile.html#remove()">remove</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the file specified by <a href="QFile.html#fileName()"><tt>fileName</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#remove(java.lang.String)">remove</A></B>(java.lang.String&nbsp;fileName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the file specified by the <tt>fileName</tt> given.</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/QFile.html#rename(java.lang.String)">rename</A></B>(java.lang.String&nbsp;newName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Renames the file currently specified by <a href="QFile.html#fileName()"><tt>fileName</tt></a> to <tt>newName</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#rename(java.lang.String, java.lang.String)">rename</A></B>(java.lang.String&nbsp;oldName,
       java.lang.String&nbsp;newName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Renames the file <tt>oldName</tt> to <tt>newName</tt>.</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/QFile.html#resize(long)">resize</A></B>(long&nbsp;sz)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the file size (in bytes) <tt>sz</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#resize(java.lang.String, long)">resize</A></B>(java.lang.String&nbsp;filename,
       long&nbsp;sz)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets <tt>filename</tt> to size (in bytes) <tt>sz</tt>.</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/QFile.html#seek(long)">seek</A></B>(long&nbsp;offset)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For random-access devices, this function sets the current position to <tt>offset</tt>, returning true on success, or false if an error occurred.</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/QFile.html#setFileName(java.lang.String)">setFileName</A></B>(java.lang.String&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the <tt>name</tt> of the file.</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/QFile.html#setPermissions(com.trolltech.qt.core.QFile.Permission...)">setPermissions</A></B>(<A HREF="../../../../com/trolltech/qt/core/QFile.Permission.html" title="enum in com.trolltech.qt.core">QFile.Permission</A>...&nbsp;permissionSpec)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the permissions for the file to the <tt>permissionSpec</tt> specified.</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/QFile.html#setPermissions(com.trolltech.qt.core.QFile.Permissions)">setPermissions</A></B>(<A HREF="../../../../com/trolltech/qt/core/QFile.Permissions.html" title="class in com.trolltech.qt.core">QFile.Permissions</A>&nbsp;permissionSpec)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the permissions for the file to the <tt>permissionSpec</tt> specified.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#setPermissions(java.lang.String, com.trolltech.qt.core.QFile.Permission...)">setPermissions</A></B>(java.lang.String&nbsp;filename,
               <A HREF="../../../../com/trolltech/qt/core/QFile.Permission.html" title="enum in com.trolltech.qt.core">QFile.Permission</A>...&nbsp;permissionSpec)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the permissions for <tt>filename</tt> file to <tt>permissionSpec</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#setPermissions(java.lang.String, com.trolltech.qt.core.QFile.Permissions)">setPermissions</A></B>(java.lang.String&nbsp;filename,
               <A HREF="../../../../com/trolltech/qt/core/QFile.Permissions.html" title="class in com.trolltech.qt.core">QFile.Permissions</A>&nbsp;permissionSpec)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the permissions for <tt>filename</tt> file to <tt>permissionSpec</tt>.</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/QFile.html#size()">size</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of the file.</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/QFile.html#symLinkTarget()">symLinkTarget</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the absolute path of the file or directory a symlink (or shortcut on Windows) points to, or a an empty string if the object isn't a symbolic link.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#symLinkTarget(java.lang.String)">symLinkTarget</A></B>(java.lang.String&nbsp;fileName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the absolute path of the file or directory referred to by the symlink (or shortcut on Windows) specified by <tt>fileName</tt>, or returns an empty string if the <tt>fileName</tt> does not correspond to a symbolic link.</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/QFile.html#unsetError()">unsetError</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the file's error to QFile::NoError.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QFile.html#writeData(byte[])">writeData</A></B>(byte[]&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QFile.html#writeData(byte[])"><tt>writeData</tt></a>(<tt>data</tt>, ).</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.core.QIODevice"><!-- --></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.core.<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#bytesAvailable()">bytesAvailable</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#bytesToWrite()">bytesToWrite</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#canReadLine()">canReadLine</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#errorString()">errorString</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#getByte()">getByte</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#isOpen()">isOpen</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#isReadable()">isReadable</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#isTextModeEnabled()">isTextModeEnabled</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#isWritable()">isWritable</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#open(com.trolltech.qt.core.QIODevice.OpenModeFlag...)">open</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#openMode()">openMode</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#peek(byte[])">peek</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#peek(long)">peek</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#putByte(byte)">putByte</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#read(byte[])">read</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#read(long)">read</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readAll()">readAll</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readLine()">readLine</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readLine(byte[])">readLine</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readLine(long)">readLine</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#reset()">reset</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#setErrorString(java.lang.String)">setErrorString</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#setOpenMode(com.trolltech.qt.core.QIODevice.OpenMode)">setOpenMode</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#setOpenMode(com.trolltech.qt.core.QIODevice.OpenModeFlag...)">setOpenMode</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#setTextModeEnabled(boolean)">setTextModeEnabled</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#ungetByte(byte)">ungetByte</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#waitForBytesWritten(int)">waitForBytesWritten</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#waitForReadyRead(int)">waitForReadyRead</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#write(byte[])">write</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#write(com.trolltech.qt.core.QByteArray)">write</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.core.QObject"><!-- --></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.core.<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/core/QObject.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#childEvent(com.trolltech.qt.core.QChildEvent)">childEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#children()">children</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#connectSlotsByName()">connectSlotsByName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#customEvent(com.trolltech.qt.core.QEvent)">customEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#disposeLater()">disposeLater</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectInfo()">dumpObjectInfo</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectTree()">dumpObjectTree</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dynamicPropertyNames()">dynamicPropertyNames</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#event(com.trolltech.qt.core.QEvent)">event</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#eventFilter(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)">eventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild()">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class, java.lang.String)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren()">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, com.trolltech.qt.core.QRegExp)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, java.lang.String)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#installEventFilter(com.trolltech.qt.core.QObject)">installEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#isWidgetType()">isWidgetType</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#killTimer(int)">killTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#moveToThread(java.lang.Thread)">moveToThread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#objectName()">objectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#parent()">parent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#property(java.lang.String)">property</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#removeEventFilter(com.trolltech.qt.core.QObject)">removeEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setObjectName(java.lang.String)">setObjectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setParent(com.trolltech.qt.core.QObject)">setParent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#startTimer(int)">startTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#thread()">thread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#timerEvent(com.trolltech.qt.core.QTimerEvent)">timerEvent</A></CODE></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#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</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="QFile(java.lang.String, com.trolltech.qt.core.QObject)"><!-- --></A><H3>
QFile</H3>
<PRE>
public <B>QFile</B>(java.lang.String&nbsp;name,
             <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</PRE>
<DL>
<DD><p>Constructs a new file object with the given <tt>parent</tt> to represent the file with the specified <tt>name</tt>.</p>
<P>
</DL>
<HR>

<A NAME="QFile(java.lang.String)"><!-- --></A><H3>
QFile</H3>
<PRE>
public <B>QFile</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD><p>Constructs a new file object to represent the file with the given <tt>name</tt>.</p>
<P>
</DL>
<HR>

<A NAME="QFile(com.trolltech.qt.core.QObject)"><!-- --></A><H3>
QFile</H3>
<PRE>
public <B>QFile</B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</PRE>
<DL>
<DD><p>Constructs a new file object with the given <tt>parent</tt>.</p>
<P>
</DL>
<HR>

<A NAME="QFile()"><!-- --></A><H3>
QFile</H3>
<PRE>
public <B>QFile</B>()</PRE>
<DL>
<DD><p>This method is used internally by Qt Jambi.
Do not use it in your applications.</p>
<P>
</DL>

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

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

<A NAME="copy(java.lang.String)"><!-- --></A><H3>
copy</H3>
<PRE>
public final boolean <B>copy</B>(java.lang.String&nbsp;newName)</PRE>
<DL>
<DD><p>Copies the file currently specified by <a href="QFile.html#fileName()"><tt>fileName</tt></a> to a file called <tt>newName</tt>. Returns true if successful; otherwise returns false.</p>
<p>Note that if a file with the name <tt>newName</tt> already exists, <a href="QFile.html#copy(java.lang.String, java.lang.String)"><tt>copy</tt></a> returns false (i.e&#x2e; <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a> will not overwrite it).</p>
<p>The source file is closed before it is copied.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#setFileName(java.lang.String)"><tt>setFileName</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="error()"><!-- --></A><H3>
error</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QFile.FileError.html" title="enum in com.trolltech.qt.core">QFile.FileError</A> <B>error</B>()</PRE>
<DL>
<DD><p>Returns the file error status.</p>
<p>The I/O device status returns an error code. For example, if <a href="QFile.html#open(com.trolltech.qt.core.QIODevice.OpenMode)"><tt>open</tt></a> returns false, or a read/write operation returns -1, this function can be called to find out the reason why the operation failed.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#unsetError()"><tt>unsetError</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="exists()"><!-- --></A><H3>
exists</H3>
<PRE>
public final boolean <B>exists</B>()</PRE>
<DL>
<DD><p>Returns true if the file specified by <a href="QFile.html#fileName()"><tt>fileName</tt></a> exists; otherwise returns false.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#fileName()"><tt>fileName</tt></a>, 
<a href="QFile.html#setFileName(java.lang.String)"><tt>setFileName</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="fileName()"><!-- --></A><H3>
fileName</H3>
<PRE>
public final java.lang.String <B>fileName</B>()</PRE>
<DL>
<DD><p>Returns the name set by <a href="QFile.html#setFileName(java.lang.String)"><tt>setFileName</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#setFileName(java.lang.String)"><tt>setFileName</tt></a>, 
<tt>QFileInfo::fileName</tt></DL>
</DD>
</DL>
<HR>

<A NAME="flush()"><!-- --></A><H3>
flush</H3>
<PRE>
public final boolean <B>flush</B>()</PRE>
<DL>
<DD><p>Flushes any buffered data to the file. Returns true if successful; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="handle()"><!-- --></A><H3>
handle</H3>
<PRE>
public final int <B>handle</B>()</PRE>
<DL>
<DD><p>Returns the file handle of the file.</p>
<p>This is a small positive integer, suitable for use with C library functions such as fdopen() and fcntl(). On systems that use file descriptors for sockets (i.e&#x2e; Unix systems, but not Windows) the handle can be used with <a href="QSocketNotifier.html"><tt>QSocketNotifier</tt></a> as well.</p>
<p>If the file is not open, or there is an error, <a href="QFile.html#handle()"><tt>handle</tt></a> returns -1.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QSocketNotifier.html"><tt>QSocketNotifier</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="link(java.lang.String)"><!-- --></A><H3>
link</H3>
<PRE>
public final boolean <B>link</B>(java.lang.String&nbsp;newName)</PRE>
<DL>
<DD><p>Creates a link named <tt>newName</tt> that points to the file currently specified by <a href="QFile.html#fileName()"><tt>fileName</tt></a>. What a link is depends on the underlying filesystem (be it a shortcut on Windows or a symbolic link on Unix). Returns true if successful; otherwise returns false.</p>
<p><b>Note:</b> To create a valid link on Windows, <tt>newName</tt> must have a <tt>.lnk</tt> file extension.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#setFileName(java.lang.String)"><tt>setFileName</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="open(int, com.trolltech.qt.core.QIODevice.OpenModeFlag...)"><!-- --></A><H3>
open</H3>
<PRE>
public final boolean <B>open</B>(int&nbsp;fd,
                          <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenModeFlag.html" title="enum in com.trolltech.qt.core">QIODevice.OpenModeFlag</A>...&nbsp;flags)</PRE>
<DL>
<DD><p>Opens the existing file descripter <tt>fd</tt> in the given <tt>flags</tt>. Returns true if successful; otherwise returns false.</p>
<p>When a <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a> is opened using this function, <a href="QFile.html#close()"><tt>close</tt></a> does not actually close the file.</p>
<p>The <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a> that is opened using this function is automatically set to be in raw mode; this means that the file input/output functions are slow. If you run into performance issues, you should try to use one of the other open functions.</p>
<p><b>Warning:</b> If <tt>fd</tt> is 0 (<tt>stdin</tt>), 1 (<tt>stdout</tt>), or 2 (<tt>stderr</tt>), you may not be able to <a href="QFile.html#seek(long)"><tt>seek</tt></a>. <a href="QFile.html#size()"><tt>size</tt></a> is set to <tt>LLONG_MAX</tt> (in <tt>&lt;climits&gt;</tt>).</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#close()"><tt>close</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="open(int, com.trolltech.qt.core.QIODevice.OpenMode)"><!-- --></A><H3>
open</H3>
<PRE>
public final boolean <B>open</B>(int&nbsp;fd,
                          <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;flags)</PRE>
<DL>
<DD><p>Opens the existing file descripter <tt>fd</tt> in the given <tt>flags</tt>. Returns true if successful; otherwise returns false.</p>
<p>When a <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a> is opened using this function, <a href="QFile.html#close()"><tt>close</tt></a> does not actually close the file.</p>
<p>The <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a> that is opened using this function is automatically set to be in raw mode; this means that the file input/output functions are slow. If you run into performance issues, you should try to use one of the other open functions.</p>
<p><b>Warning:</b> If <tt>fd</tt> is 0 (<tt>stdin</tt>), 1 (<tt>stdout</tt>), or 2 (<tt>stderr</tt>), you may not be able to <a href="QFile.html#seek(long)"><tt>seek</tt></a>. <a href="QFile.html#size()"><tt>size</tt></a> is set to <tt>LLONG_MAX</tt> (in <tt>&lt;climits&gt;</tt>).</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#close()"><tt>close</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="permissions()"><!-- --></A><H3>
permissions</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QFile.Permissions.html" title="class in com.trolltech.qt.core">QFile.Permissions</A> <B>permissions</B>()</PRE>
<DL>
<DD><p>Returns the complete OR-ed together combination of QFile::Permission for the file.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#setPermissions(java.lang.String, com.trolltech.qt.core.QFile.Permissions)"><tt>setPermissions</tt></a>, 
<a href="QFile.html#setFileName(java.lang.String)"><tt>setFileName</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="remove()"><!-- --></A><H3>
remove</H3>
<PRE>
public final boolean <B>remove</B>()</PRE>
<DL>
<DD><p>Removes the file specified by <a href="QFile.html#fileName()"><tt>fileName</tt></a>. Returns true if successful; otherwise returns false.</p>
<p>The file is closed before it is removed.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#setFileName(java.lang.String)"><tt>setFileName</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="rename(java.lang.String)"><!-- --></A><H3>
rename</H3>
<PRE>
public final boolean <B>rename</B>(java.lang.String&nbsp;newName)</PRE>
<DL>
<DD><p>Renames the file currently specified by <a href="QFile.html#fileName()"><tt>fileName</tt></a> to <tt>newName</tt>. Returns true if successful; otherwise returns false.</p>
<p>If a file with the name <tt>newName</tt> already exists, <a href="QFile.html#rename(java.lang.String, java.lang.String)"><tt>rename</tt></a> returns false (i.e&#x2e;, <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a> will not overwrite it).</p>
<p>The file is closed before it is renamed.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#setFileName(java.lang.String)"><tt>setFileName</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="resize(long)"><!-- --></A><H3>
resize</H3>
<PRE>
public final boolean <B>resize</B>(long&nbsp;sz)</PRE>
<DL>
<DD><p>Sets the file size (in bytes) <tt>sz</tt>. Returns true if the file if the resize succeeds; false otherwise. If <tt>sz</tt> is larger than the file currently is the new bytes will be set to 0, if <tt>sz</tt> is smaller the file is simply truncated.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#size()"><tt>size</tt></a>, 
<a href="QFile.html#setFileName(java.lang.String)"><tt>setFileName</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setFileName(java.lang.String)"><!-- --></A><H3>
setFileName</H3>
<PRE>
public final void <B>setFileName</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD><p>Sets the <tt>name</tt> of the file. The name can have no path, a relative path, or an absolute path.</p>
<p>Do not call this function if the file has already been opened.</p>
<p>If the file name has no path or a relative path, the path used will be the application's current directory path <i>at the time of the <a href="QFile.html#open(com.trolltech.qt.core.QIODevice.OpenMode)"><tt>open</tt></a></i> call.</p>
<p>Example:</p>
<pre>    QFile file;
    QDir::setCurrent(&quot;/tmp&quot;);
    file.setFileName(&quot;readme.txt&quot;);
    QDir::setCurrent(&quot;/home&quot;);
    file.open(QIODevice::ReadOnly);      <span class="comment">// opens &quot;/home/readme.txt&quot; under Unix</span></pre>
<p>Note that the directory separator &quot;/&quot; works for all operating systems supported by Qt.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#fileName()"><tt>fileName</tt></a>, 
<a href="QFileInfo.html"><tt>QFileInfo</tt></a>, 
<a href="QDir.html"><tt>QDir</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setPermissions(com.trolltech.qt.core.QFile.Permission...)"><!-- --></A><H3>
setPermissions</H3>
<PRE>
public final boolean <B>setPermissions</B>(<A HREF="../../../../com/trolltech/qt/core/QFile.Permission.html" title="enum in com.trolltech.qt.core">QFile.Permission</A>...&nbsp;permissionSpec)</PRE>
<DL>
<DD><p>Sets the permissions for the file to the <tt>permissionSpec</tt> specified. Returns true if successful, or false if the permissions cannot be modified.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#permissions(java.lang.String)"><tt>permissions</tt></a>, 
<a href="QFile.html#setFileName(java.lang.String)"><tt>setFileName</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setPermissions(com.trolltech.qt.core.QFile.Permissions)"><!-- --></A><H3>
setPermissions</H3>
<PRE>
public final boolean <B>setPermissions</B>(<A HREF="../../../../com/trolltech/qt/core/QFile.Permissions.html" title="class in com.trolltech.qt.core">QFile.Permissions</A>&nbsp;permissionSpec)</PRE>
<DL>
<DD><p>Sets the permissions for the file to the <tt>permissionSpec</tt> specified. Returns true if successful, or false if the permissions cannot be modified.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#permissions(java.lang.String)"><tt>permissions</tt></a>, 
<a href="QFile.html#setFileName(java.lang.String)"><tt>setFileName</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="symLinkTarget()"><!-- --></A><H3>
symLinkTarget</H3>
<PRE>
public final java.lang.String <B>symLinkTarget</B>()</PRE>
<DL>
<DD><p>Returns the absolute path of the file or directory a symlink (or shortcut on Windows) points to, or a an empty string if the object isn't a symbolic link.</p>
<p>This name may not represent an existing file; it is only a string. QFile::exists() returns true if the symlink points to an existing file.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#fileName()"><tt>fileName</tt></a>, 
<a href="QFile.html#setFileName(java.lang.String)"><tt>setFileName</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="unsetError()"><!-- --></A><H3>
unsetError</H3>
<PRE>
public final void <B>unsetError</B>()</PRE>
<DL>
<DD><p>Sets the file's error to QFile::NoError.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#error()"><tt>error</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="atEnd()"><!-- --></A><H3>
atEnd</H3>
<PRE>
public boolean <B>atEnd</B>()</PRE>
<DL>
<DD><p>Returns true if the end of the file has been reached; otherwise returns false.</p>
<p>For regular empty files on Unix (e.g&#x2e; those in <tt>/proc</tt>), this function returns true, since the file system reports that the size of such a file is 0. Therefore, you should not depend on <a href="QFile.html#atEnd()"><tt>atEnd</tt></a> when reading data from such a file, but rather call <a href="QIODevice.html#read(long)"><tt>read</tt></a> until no more data can be read.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#atEnd()">atEnd</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIODevice.html#bytesAvailable()"><tt>bytesAvailable</tt></a>, 
<a href="QIODevice.html#read(long)"><tt>read</tt></a>, 
<a href="QIODevice.html#isSequential()"><tt>isSequential</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="close()"><!-- --></A><H3>
close</H3>
<PRE>
public void <B>close</B>()</PRE>
<DL>
<DD><p>This function is reimplemented for internal reasons.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#close()">close</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIODevice.html#setOpenMode(com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setOpenMode</tt></a>, 
<tt>OpenMode</tt></DL>
</DD>
</DL>
<HR>

<A NAME="fileEngine()"><!-- --></A><H3>
fileEngine</H3>
<PRE>
public <A HREF="../../../../com/trolltech/qt/core/QAbstractFileEngine.html" title="class in com.trolltech.qt.core">QAbstractFileEngine</A> <B>fileEngine</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="isSequential()"><!-- --></A><H3>
isSequential</H3>
<PRE>
public boolean <B>isSequential</B>()</PRE>
<DL>
<DD><p>Returns true if the file can only be manipulated sequentially; otherwise returns false.</p>
<p>Most files support random-access, but some special files may not.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#isSequential()">isSequential</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QIODevice::isSequential</tt></DL>
</DD>
</DL>
<HR>

<A NAME="open(com.trolltech.qt.core.QIODevice.OpenMode)"><!-- --></A><H3>
open</H3>
<PRE>
public boolean <B>open</B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;flags)</PRE>
<DL>
<DD><p>Opens the file using OpenMode <tt>flags</tt>, returning true if successful; otherwise false.</p>
<p>The <tt>flags</tt> must be QIODevice::ReadOnly, QIODevice::WriteOnly, or QIODevice::ReadWrite. It may also have additional flags, such as QIODevice::Text and QIODevice::Unbuffered.</p>
<p><b>Note:</b> In WriteOnly or ReadWrite mode, if the relevant file does not already exist, this function will try to create a new file before opening it.</p>
<p><b>Note:</b> Because of limitations in the native API, <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a> ignores the Unbuffered flag on Windows.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#open(com.trolltech.qt.core.QIODevice.OpenMode)">open</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QIODevice::OpenMode</tt>, 
<a href="QFile.html#setFileName(java.lang.String)"><tt>setFileName</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="pos()"><!-- --></A><H3>
pos</H3>
<PRE>
public long <B>pos</B>()</PRE>
<DL>
<DD><p>This function is reimplemented for internal reasons.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#pos()">pos</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIODevice.html#isSequential()"><tt>isSequential</tt></a>, 
<a href="QIODevice.html#seek(long)"><tt>seek</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="readData(byte[])"><!-- --></A><H3>
readData</H3>
<PRE>
protected int <B>readData</B>(byte[]&nbsp;data)</PRE>
<DL>
<DD><p>Equivalent to <a href="QFile.html#readData(byte[])"><tt>readData</tt></a>(<tt>data</tt>, ).
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readData(byte[])">readData</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readLineData(byte[])"><!-- --></A><H3>
readLineData</H3>
<PRE>
protected int <B>readLineData</B>(byte[]&nbsp;data)</PRE>
<DL>
<DD><p>Equivalent to <a href="QFile.html#readLineData(byte[])"><tt>readLineData</tt></a>(<tt>data</tt>, ).
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readLineData(byte[])">readLineData</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="seek(long)"><!-- --></A><H3>
seek</H3>
<PRE>
public boolean <B>seek</B>(long&nbsp;offset)</PRE>
<DL>
<DD><p>For random-access devices, this function sets the current position to <tt>offset</tt>, returning true on success, or false if an error occurred. For sequential devices, the default behavior is to do nothing and return false.</p>
<p>When subclassing <a href="QIODevice.html#QIODevice(com.trolltech.qt.core.QObject)"><tt>QIODevice</tt></a>, you must call QIODevice::seek() at the start of your function to ensure integrity with <a href="QIODevice.html#QIODevice(com.trolltech.qt.core.QObject)"><tt>QIODevice</tt></a>'s built-in buffer. The base implementation always returns true.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#seek(long)">seek</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#pos()"><tt>pos</tt></a>, 
<a href="QFile.html#isSequential()"><tt>isSequential</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="size()"><!-- --></A><H3>
size</H3>
<PRE>
public long <B>size</B>()</PRE>
<DL>
<DD><p>Returns the size of the file.</p>
<p>For regular empty files on Unix (e.g&#x2e; those in <tt>/proc</tt>), this function returns 0; the contents of such a file are generated on demand in response to you calling <a href="QIODevice.html#read(long)"><tt>read</tt></a>.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#size()">size</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIODevice.html#isSequential()"><tt>isSequential</tt></a>, 
<a href="QIODevice.html#pos()"><tt>pos</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="writeData(byte[])"><!-- --></A><H3>
writeData</H3>
<PRE>
protected int <B>writeData</B>(byte[]&nbsp;data)</PRE>
<DL>
<DD><p>Equivalent to <a href="QFile.html#writeData(byte[])"><tt>writeData</tt></a>(<tt>data</tt>, ).
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#writeData(byte[])">writeData</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="copy(java.lang.String, java.lang.String)"><!-- --></A><H3>
copy</H3>
<PRE>
public static boolean <B>copy</B>(java.lang.String&nbsp;fileName,
                           java.lang.String&nbsp;newName)</PRE>
<DL>
<DD><p>Copies the file <tt>fileName</tt> to <tt>newName</tt>. Returns true if successful; otherwise returns false.</p>
<p>If a file with the name <tt>newName</tt> already exists, <a href="QFile.html#copy(java.lang.String, java.lang.String)"><tt>copy</tt></a> returns false (i.e&#x2e;, <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a> will not overwrite it).</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#rename(java.lang.String, java.lang.String)"><tt>rename</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="decodeName(com.trolltech.qt.core.QByteArray)"><!-- --></A><H3>
decodeName</H3>
<PRE>
public static java.lang.String <B>decodeName</B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;localFileName)</PRE>
<DL>
<DD><p>This does the reverse of QFile::encodeName() using <tt>localFileName</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>setDecodingFunction</tt>, 
<a href="QFile.html#encodeName(java.lang.String)"><tt>encodeName</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="encodeName(java.lang.String)"><!-- --></A><H3>
encodeName</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> <B>encodeName</B>(java.lang.String&nbsp;fileName)</PRE>
<DL>
<DD><p>By default, this function converts <tt>fileName</tt> to the local 8-bit encoding determined by the user's locale. This is sufficient for file names that the user chooses. File names hard-coded into the application should only use 7-bit ASCII filename characters.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#decodeName(com.trolltech.qt.core.QByteArray)"><tt>decodeName</tt></a>, 
<tt>setEncodingFunction</tt></DL>
</DD>
</DL>
<HR>

<A NAME="exists(java.lang.String)"><!-- --></A><H3>
exists</H3>
<PRE>
public static boolean <B>exists</B>(java.lang.String&nbsp;fileName)</PRE>
<DL>
<DD><p>Returns true if the file specified by <tt>fileName</tt> exists; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="link(java.lang.String, java.lang.String)"><!-- --></A><H3>
link</H3>
<PRE>
public static boolean <B>link</B>(java.lang.String&nbsp;oldname,
                           java.lang.String&nbsp;newName)</PRE>
<DL>
<DD><p>Creates a link named <tt>newName</tt> that points to the file <tt>oldname</tt>. What a link is depends on the underlying filesystem (be it a shortcut on Windows or a symbolic link on Unix). Returns true if successful; otherwise returns false.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#link(java.lang.String, java.lang.String)"><tt>link</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="permissions(java.lang.String)"><!-- --></A><H3>
permissions</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QFile.Permissions.html" title="class in com.trolltech.qt.core">QFile.Permissions</A> <B>permissions</B>(java.lang.String&nbsp;filename)</PRE>
<DL>
<DD><p>Returns the complete OR-ed together combination of QFile::Permission for <tt>filename</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#setPermissions(java.lang.String, com.trolltech.qt.core.QFile.Permissions)"><tt>setPermissions</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="remove(java.lang.String)"><!-- --></A><H3>
remove</H3>
<PRE>
public static boolean <B>remove</B>(java.lang.String&nbsp;fileName)</PRE>
<DL>
<DD><p>Removes the file specified by the <tt>fileName</tt> given.</p>
<p>Returns true if successful; otherwise returns false.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#remove(java.lang.String)"><tt>remove</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="rename(java.lang.String, java.lang.String)"><!-- --></A><H3>
rename</H3>
<PRE>
public static boolean <B>rename</B>(java.lang.String&nbsp;oldName,
                             java.lang.String&nbsp;newName)</PRE>
<DL>
<DD><p>Renames the file <tt>oldName</tt> to <tt>newName</tt>. Returns true if successful; otherwise returns false.</p>
<p>If a file with the name <tt>newName</tt> already exists, <a href="QFile.html#rename(java.lang.String, java.lang.String)"><tt>rename</tt></a> returns false (i.e&#x2e;, <a href="QFile.html#QFile(com.trolltech.qt.core.QObject)"><tt>QFile</tt></a> will not overwrite it).</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#rename(java.lang.String, java.lang.String)"><tt>rename</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="resize(java.lang.String, long)"><!-- --></A><H3>
resize</H3>
<PRE>
public static boolean <B>resize</B>(java.lang.String&nbsp;filename,
                             long&nbsp;sz)</PRE>
<DL>
<DD><p>Sets <tt>filename</tt> to size (in bytes) <tt>sz</tt>. Returns true if the file if the resize succeeds; false otherwise. If <tt>sz</tt> is larger than <tt>filename</tt> currently is the new bytes will be set to 0, if <tt>sz</tt> is smaller the file is simply truncated.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#resize(java.lang.String, long)"><tt>resize</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setPermissions(java.lang.String, com.trolltech.qt.core.QFile.Permission...)"><!-- --></A><H3>
setPermissions</H3>
<PRE>
public static boolean <B>setPermissions</B>(java.lang.String&nbsp;filename,
                                     <A HREF="../../../../com/trolltech/qt/core/QFile.Permission.html" title="enum in com.trolltech.qt.core">QFile.Permission</A>...&nbsp;permissionSpec)</PRE>
<DL>
<DD><p>Sets the permissions for <tt>filename</tt> file to <tt>permissionSpec</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#permissions(java.lang.String)"><tt>permissions</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setPermissions(java.lang.String, com.trolltech.qt.core.QFile.Permissions)"><!-- --></A><H3>
setPermissions</H3>
<PRE>
public static boolean <B>setPermissions</B>(java.lang.String&nbsp;filename,
                                     <A HREF="../../../../com/trolltech/qt/core/QFile.Permissions.html" title="class in com.trolltech.qt.core">QFile.Permissions</A>&nbsp;permissionSpec)</PRE>
<DL>
<DD><p>Sets the permissions for <tt>filename</tt> file to <tt>permissionSpec</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QFile.html#permissions(java.lang.String)"><tt>permissions</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="symLinkTarget(java.lang.String)"><!-- --></A><H3>
symLinkTarget</H3>
<PRE>
public static java.lang.String <B>symLinkTarget</B>(java.lang.String&nbsp;fileName)</PRE>
<DL>
<DD><p>Returns the absolute path of the file or directory referred to by the symlink (or shortcut on Windows) specified by <tt>fileName</tt>, or returns an empty string if the <tt>fileName</tt> does not correspond to a symbolic link.</p>
<p>This name may not represent an existing file; it is only a string. QFile::exists() returns true if the symlink points to an existing file.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QFile.html" title="class in com.trolltech.qt.core">QFile</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 QFile 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="decodeName(java.lang.String)"><!-- --></A><H3>
decodeName</H3>
<PRE>
public static java.lang.String <B>decodeName</B>(java.lang.String&nbsp;localFileName)</PRE>
<DL>
<DD>Returns the Unicode version of the given <tt>localFileName</tt>. See
encodeName() for details.
<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/QEventLoop.ProcessEventsFlags.html" title="class in com.trolltech.qt.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QFile.FileError.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/QFile.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QFile.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;<A HREF="#fields_inherited_from_class_com.trolltech.qt.core.QIODevice">FIELD</A>&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>