?? datarow.html
字號:
</DL><HR><A NAME="getDouble(int, java.text.DecimalFormat, double)"><!-- --></A><H3>getDouble</H3><PRE>public double <B>getDouble</B>(int location, java.text.DecimalFormat format, double defaultVal)</PRE><DL><DD>Retrieves the <code>double</code> value at specified <code>location</code> parsed using <code>format</code>. If the value does not exist or fails to parse into <code>double</code>, <code>defaultVal</code> is returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>location</CODE> - location of <code>double</code> value<DD><CODE>format</CODE> - double value parser to be used in extracting item.<DD><CODE>defaultVal</CODE> - default value to use in case of missing data or parse error.<DT><B>Returns:</B><DD>a double value at specified <code>location</code> or <code>defaultVal</code></DL></DD></DL><HR><A NAME="getDouble(java.lang.String, double)"><!-- --></A><H3>getDouble</H3><PRE>public double <B>getDouble</B>(java.lang.String label, double defaultVal)</PRE><DL><DD>Retrieve the <code>double</code> value contained in data cell corresponding to the specified column <code>label</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>label</CODE> - column label<DD><CODE>defaultVal</CODE> - default value to use when value does not exist or does not parse correctly.<DT><B>Returns:</B><DD><code>double</code> value corresponding to the specified column <code>label</code>. If the specified column <code>label</code> does not exist or the value cannot parsed into a <code>double</code>, <code>defaultValu</code>.</DL></DD></DL><HR><A NAME="getInt(int)"><!-- --></A><H3>getInt</H3><PRE>public int <B>getInt</B>(int location) throws java.lang.NumberFormatException</PRE><DL><DD>Retrieves the int value of the datum contained in the specified location.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>location</CODE> - location of the item.<DT><B>Returns:</B><DD>an <code>int</code> at the specified <code>location</code>.<DT><B>Throws:</B><DD><CODE>java.lang.NumberFormatException</CODE> - if the value at specified location cannot parsed into an <code>int</code></DL></DD></DL><HR><A NAME="getInt(java.lang.String)"><!-- --></A><H3>getInt</H3><PRE>public int <B>getInt</B>(java.lang.String label) throws java.lang.NumberFormatException</PRE><DL><DD>Retrieves the int value of the datum contained under specified column <code>label</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>label</CODE> - column label<DT><B>Returns:</B><DD>a <code>int</code> value<DT><B>Throws:</B><DD><CODE>java.lang.NumberFormatException</CODE> - if specified column <code>label</code> does not exist or the value cannot parsed into an <code>int</code></DL></DD></DL><HR><A NAME="getInt(int, int)"><!-- --></A><H3>getInt</H3><PRE>public int <B>getInt</B>(int location, int defaultVal)</PRE><DL><DD>Retrieves the int value of the datum contained in the specified location. If the specified location does not contain a int value or empty, default value is returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>location</CODE> - location of the item.<DD><CODE>defaultVal</CODE> - default value to use when value does not exist.<DT><B>Returns:</B><DD>a <code>int</code> value</DL></DD></DL><HR><A NAME="getInt(int, java.text.DecimalFormat, int)"><!-- --></A><H3>getInt</H3><PRE>public int <B>getInt</B>(int location, java.text.DecimalFormat format, int defaultVal)</PRE><DL><DD>Retrieves the <code>int</code> value at specified <code>location</code> parsed using <code>format</code>. If the value does not exist or fails to parse into <code>int</code>, <code>defaultVal</code> is returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>location</CODE> - location of <code>int</code> value<DD><CODE>format</CODE> - <code>int</code> value parser to be used in extracting item.<DD><CODE>defaultVal</CODE> - default value to use in case of missing data or parse error.<DT><B>Returns:</B><DD>an <code>int</code> value at specified <code>location</code> or the <code>defaultVal</code></DL></DD></DL><HR><A NAME="getInt(java.lang.String, int)"><!-- --></A><H3>getInt</H3><PRE>public int <B>getInt</B>(java.lang.String label, int defaultVal)</PRE><DL><DD>Retrieves the <code>int</code> value under the specified column <code>label</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>label</CODE> - column label (header)<DD><CODE>defaultVal</CODE> - default value to use when value does not exist.<DT><B>Returns:</B><DD><code>int</code> value corresponding to the specified column <code>label</code>. If the specified column <code>label</code> does not exist or cannot be convert into an <code>int</code> default value is returned.</DL></DD></DL><HR><A NAME="getString(int)"><!-- --></A><H3>getString</H3><PRE>public java.lang.String <B>getString</B>(int location)</PRE><DL><DD>Retrieves the String value contained in the specified location.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>location</CODE> - an <code>int</code> value<DT><B>Returns:</B><DD>a <code>String</code> value or emty String if specified location does not exist. (never returns null)</DL></DD></DL><HR><A NAME="getString(java.lang.String)"><!-- --></A><H3>getString</H3><PRE>public java.lang.String <B>getString</B>(java.lang.String label)</PRE><DL><DD>Retrieves the <code>String</code> value located under specified column <code>label</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>label</CODE> - column label<DT><B>Returns:</B><DD>a <code>String</code> value corresponding to specified column <code>label</code>. If the column does not exist, empty <code>String</code> is returned.</DL></DD></DL><HR><A NAME="getString(int, java.lang.String)"><!-- --></A><H3>getString</H3><PRE>public java.lang.String <B>getString</B>(int location, java.lang.String defaultVal)</PRE><DL><DD>Retrieves the String value contained in the specified location or <code>defaultVal</code> if it does not.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>location</CODE> - location of the item (starts at zero)<DD><CODE>defaultVal</CODE> - default value to use when the does not contain a value.<DT><B>Returns:</B><DD>a <code>String</code> value at specified <code>location</code>. If the value does not exist, <code>defaultVal</code> is returned.</DL></DD></DL><HR><A NAME="getString(java.lang.String, java.lang.String)"><!-- --></A><H3>getString</H3><PRE>public java.lang.String <B>getString</B>(java.lang.String label, java.lang.String defaultVal)</PRE><DL><DD>Retrieves the <code>String</code> value contained under the specified column <code>label</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>label</CODE> - column label<DD><CODE>defaultVal</CODE> - default value to return when value does not exist or <code>label</code> fails to match any of the column names in header row.<DT><B>Returns:</B><DD>a <code>String</code> value corresponding to specified column <code>label</code>. If no such column exists or the value is empty, <code>devaultVal</code> is returned.</DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>public int <B>size</B>()</PRE><DL><DD>Retrieves the number of location in row.<P><DD><DL><DT><B>Returns:</B><DD>number of items contined in <code>DataRow</code></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD><b>For debugging purpose</b>. Converts the row of data into String<P><DD><DL><DT><B>Returns:</B><DD>String representation of data row.</DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <B>clear</B>()</PRE><DL><DD>Remove the content of DataRow.<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=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> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DataRow.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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"> <A HREF="../../../com/infomata/data/DataFormat.html" title="interface in com.infomata.data"><B>PREV CLASS</B></A> <A HREF="../../../com/infomata/data/FixedWidthFormat.html" title="class 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> <A HREF="DataRow.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR> <i>Copyright © 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 + -