⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datafile.html

📁 这是一个Java工具类库
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TD><CODE><B><A HREF="../../../com/infomata/data/DataFile.html#setDataFormat(com.infomata.data.DataFormat)">setDataFormat</A></B>(<A HREF="../../../com/infomata/data/DataFormat.html" title="interface in com.infomata.data">DataFormat</A>&nbsp;format)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the data format to be read or written.</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"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="createReader(java.lang.String)"><!-- --></A><H3>createReader</H3><PRE>public static final <A HREF="../../../com/infomata/data/DataFile.html" title="class in com.infomata.data">DataFile</A> <B>createReader</B>(java.lang.String&nbsp;enc)</PRE><DL><DD>Creates a reader instance of a data file.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>enc</CODE> - Java character encoding in which the data               file is written.<DT><B>Returns:</B><DD>a reader instance of the DataFile.</DL></DD></DL><HR><A NAME="createWriter(java.lang.String, boolean)"><!-- --></A><H3>createWriter</H3><PRE>public static final <A HREF="../../../com/infomata/data/DataFile.html" title="class in com.infomata.data">DataFile</A> <B>createWriter</B>(java.lang.String&nbsp;enc,                                          boolean&nbsp;append)</PRE><DL><DD>Creates a writer instance of DataFile used for writing a data file.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>enc</CODE> - Java encoding to use while writing               the data file containing none-English characters.<DD><CODE>append</CODE> - True if appending to existing data file.  False, if               writing to a new file or overwriting current file.<DT><B>Returns:</B><DD>a writer instance of DataFile.</DL></DD></DL><HR><A NAME="containsHeader(boolean)"><!-- --></A><H3>containsHeader</H3><PRE>public final void <B>containsHeader</B>(boolean&nbsp;header)</PRE><DL><DD>Sets the indicator for header row (must be first line of data file).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>header</CODE> - True if the file contains a header row.  False, otherwise.</DL></DD></DL><HR><A NAME="containsHeader()"><!-- --></A><H3>containsHeader</H3><PRE>public final boolean <B>containsHeader</B>()</PRE><DL><DD>Checks if header indicator has been turned on using <A HREF="../../../com/infomata/data/DataFile.html#containsHeader(boolean)"><CODE>containsHeader(boolean)</CODE></A>.  Data file reader lacks the logic to determine if the first row is a header row, automatically, so the existance of header row must be indicated prior to reading the data file.<P><DD><DL><DT><B>Returns:</B><DD>True, if header file indicator has been set to <code>true</code>.  False, otherwise.</DL></DD></DL><HR><A NAME="setDataFormat(com.infomata.data.DataFormat)"><!-- --></A><H3>setDataFormat</H3><PRE>public final void <B>setDataFormat</B>(<A HREF="../../../com/infomata/data/DataFormat.html" title="interface in com.infomata.data">DataFormat</A>&nbsp;format)</PRE><DL><DD>Sets the data format to be read or written.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - an instance of a class that               implements DataFormat interface.<DT><B>See Also:</B><DD><A HREF="../../../com/infomata/data/DataFormat.html" title="interface in com.infomata.data"><CODE>DataFormat</CODE></A></DL></DD></DL><HR><A NAME="finalize()"><!-- --></A><H3>finalize</H3><PRE>public void <B>finalize</B>()</PRE><DL><DD>Finalization method that closes the file descriptor.  This would work only if JVM is current (1.3 or later?).<P><DD><DL></DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public final void <B>close</B>()</PRE><DL><DD>Closes a data file.<P><DD><DL></DL></DD></DL><HR><A NAME="open(java.io.File)"><!-- --></A><H3>open</H3><PRE>public final void <B>open</B>(java.io.File&nbsp;file)                throws java.io.IOException</PRE><DL><DD>Opens a data file for reading or writing<P><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - data file<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an error occurs</DL></DD></DL><HR><A NAME="next()"><!-- --></A><H3>next</H3><PRE>public final <A HREF="../../../com/infomata/data/DataRow.html" title="class in com.infomata.data">DataRow</A> <B>next</B>()                   throws java.io.IOException</PRE><DL><DD>Retrieves the next row for reading or writing data<P><DD><DL><DT><B>Returns:</B><DD>a reference to next data row.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an error occurs</DL></DD></DL><HR><A NAME="getHeaderNames()"><!-- --></A><H3>getHeaderNames</H3><PRE>public final java.util.Iterator <B>getHeaderNames</B>()</PRE><DL><DD>Retrieves the list of header names found in the first row of the data file.  In order for this to work, the header row indicator must be set prior to opening the data file.  <b>Note: the header names are not guaranteed to be the order they appear in the first row of the data file</b>.<P><DD><DL><DT><B>Returns:</B><DD>header names (not guaranteed in the order in which they appear in file).</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=3 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="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="class-use/DataFile.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&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>        <b><a href="http://www.infomata.com" target="_top"        title="Data File Read/Write Utility">DataFile 1.3.3</a></b>      </EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../com/infomata/data/CSVFormat.html" title="class in com.infomata.data"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../com/infomata/data/DataFormat.html" title="interface in com.infomata.data"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="DataFile.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;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>        <i>Copyright &#169; 2004 <a href="http://www.infomata.com" target="_top">Infomata</a>. All Rights Reserved.</i>      </BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -