?? datarow.html
字號:
<BR> Retrieve the date value at the specified <code>location</code> in specified <code>pattern</code> as an instance of <code>java.sql.Date</code> instead of <code>java.util.Date</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/infomata/data/DataRow.html#getString(int)">getString</A></B>(int location)</CODE><BR> Retrieves the String value contained in the specified location.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/infomata/data/DataRow.html#getString(int, java.lang.String)">getString</A></B>(int location, java.lang.String defaultVal)</CODE><BR> Retrieves the String value contained in the specified location or <code>defaultVal</code> if it does not.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/infomata/data/DataRow.html#getString(java.lang.String)">getString</A></B>(java.lang.String label)</CODE><BR> Retrieves the <code>String</code> value located under specified column <code>label</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/infomata/data/DataRow.html#getString(java.lang.String, java.lang.String)">getString</A></B>(java.lang.String label, java.lang.String defaultVal)</CODE><BR> Retrieves the <code>String</code> value contained under the specified column <code>label</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Iterator</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/infomata/data/DataRow.html#iterator()">iterator</A></B>()</CODE><BR> Retrieves an iterator for items</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/infomata/data/DataRow.html#size()">size</A></B>()</CODE><BR> Retrieves the number of location in row.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/infomata/data/DataRow.html#toString()">toString</A></B>()</CODE><BR> <b>For debugging purpose</b>.</TD></TR></TABLE> <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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DataRow()"><!-- --></A><H3>DataRow</H3><PRE>public <B>DataRow</B>()</PRE><DL><DD>Creates a new <code>DataRow</code> instance. Uses JVM's locale for formatting numbers.<P></DL><HR><A NAME="DataRow(java.text.NumberFormat)"><!-- --></A><H3>DataRow</H3><PRE>public <B>DataRow</B>(java.text.NumberFormat format)</PRE><DL><DD>Creates a new <code>DataRow</code> instance. Uses specified NumberFormat object to read or write numbers.<P><DT><B>Parameters:</B><DD><CODE>format</CODE> - a <code>NumberFormat</code> object</DL><!-- ============ 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="add(java.lang.String)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(java.lang.String datum)</PRE><DL><DD>Adds a String datum to the next location<P><DD><DL><DT><B>Parameters:</B><DD><CODE>datum</CODE> - String datum item</DL></DD></DL><HR><A NAME="add(int)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(int datum)</PRE><DL><DD>Adds an int datum to the next location.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>datum</CODE> - int datum item</DL></DD></DL><HR><A NAME="add(long)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(long datum)</PRE><DL><DD>Adds a long datum to the next location.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>datum</CODE> - a <code>long</code> value</DL></DD></DL><HR><A NAME="add(double)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(double datum)</PRE><DL><DD>Adds a double datum to the next location.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>datum</CODE> - a <code>double</code> value</DL></DD></DL><HR><A NAME="add(java.lang.Object)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(java.lang.Object obj)</PRE><DL><DD>Adds an object with <code>toString()</code> method defined to the next item.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - an <code>Object</code> with <code>toString()</code> defined.</DL></DD></DL><HR><A NAME="addEmpty()"><!-- --></A><H3>addEmpty</H3><PRE>public void <B>addEmpty</B>()</PRE><DL><DD>Adds an empty item (spacer)<P><DD><DL></DL></DD></DL><HR><A NAME="iterator()"><!-- --></A><H3>iterator</H3><PRE>public java.util.Iterator <B>iterator</B>()</PRE><DL><DD>Retrieves an iterator for items<P><DD><DL><DT><B>Returns:</B><DD>an <code>Iterator</code></DL></DD></DL><HR><A NAME="getDate(int, java.lang.String)"><!-- --></A><H3>getDate</H3><PRE>public java.util.Date <B>getDate</B>(int location, java.lang.String pattern)</PRE><DL><DD>Retrieves the date using the specified pattern to parse the date. See <code>java.text.SimpleDateFormat</code> documentation valid date format patterns.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>location</CODE> - locationg of the item<DD><CODE>pattern</CODE> - date format pattern (i.e. "yyyy.MM.dd" for 2002.10.20")<DT><B>Returns:</B><DD>Date contained in specified location. If parsing fails using the specified pattern, returns NULL.</DL></DD></DL><HR><A NAME="getSqlDate(int, java.lang.String)"><!-- --></A><H3>getSqlDate</H3><PRE>public java.sql.Date <B>getSqlDate</B>(int location, java.lang.String pattern)</PRE><DL><DD>Retrieve the date value at the specified <code>location</code> in specified <code>pattern</code> as an instance of <code>java.sql.Date</code> instead of <code>java.util.Date</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>location</CODE> - location of date value<DD><CODE>pattern</CODE> - format of the date value in the data file<DT><B>Returns:</B><DD><code>java.sql.Date</code> instance representing the date at <code>location</code>.</DL></DD></DL><HR><A NAME="getDate(java.lang.String, java.lang.String)"><!-- --></A><H3>getDate</H3><PRE>public java.util.Date <B>getDate</B>(java.lang.String label, java.lang.String pattern)</PRE><DL><DD>Retrieves the date corresponding to the specified column <code>label</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>label</CODE> - column label<DD><CODE>pattern</CODE> - see <CODE>SimpleDateFormat</CODE> for further description on pattern syntax.<DT><B>Returns:</B><DD><code>Date</code> value under specified column label.</DL></DD></DL><HR><A NAME="getDouble(int)"><!-- --></A><H3>getDouble</H3><PRE>public double <B>getDouble</B>(int location) throws java.lang.NumberFormatException</PRE><DL><DD>Retrieves the double 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>a <code>double</code> value<DT><B>Throws:</B><DD><CODE>java.lang.NumberFormatException</CODE> - if the item cannot be parsed using normal number parser.</DL></DD></DL><HR><A NAME="getDouble(java.lang.String)"><!-- --></A><H3>getDouble</H3><PRE>public double <B>getDouble</B>(java.lang.String label) throws java.lang.NumberFormatException</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<DT><B>Returns:</B><DD>a <code>double</code> value<DT><B>Throws:</B><DD><CODE>java.lang.NumberFormatException</CODE> - if the value cannot be parsed correctly.</DL></DD></DL><HR><A NAME="getDouble(int, double)"><!-- --></A><H3>getDouble</H3><PRE>public double <B>getDouble</B>(int location, double defaultVal)</PRE><DL><DD>Retrieves the double value of the datum contained in the specified location. If the specified location does not contain a double 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 or fails to parse correctly.<DT><B>Returns:</B><DD>a <code>double</code> value</DL></DD>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -