📄 datastreamparser.html
字号:
<!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="EMPTYFIELDNAME"><!-- --></A><H3>EMPTYFIELDNAME</H3><PRE>protected static final java.lang.String <B>EMPTYFIELDNAME</B></PRE><DL><DD>The constant for empty fields</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DataStreamParser(java.io.Reader, java.util.List, java.lang.String)"><!-- --></A><H3>DataStreamParser</H3><PRE>public <B>DataStreamParser</B>(java.io.Reader in, java.util.List columnNames, java.lang.String characterEncoding)</PRE><DL><DD>Create a new DataStreamParser instance. Requires a Reader to read the comma-separated values from, a list of column names and a character encoding.<DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - the input reader.<DD><CODE>columnNames</CODE> - a list of column names.<DD><CODE>characterEncoding</CODE> - the character encoding of the input.</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="initTokenizer(java.io.StreamTokenizer)"><!-- --></A><H3>initTokenizer</H3><PRE>protected void <B>initTokenizer</B>(java.io.StreamTokenizer tokenizer)</PRE><DL><DD>Initialize the StreamTokenizer instance used to read the lines from the input reader. This must be implemented in subclasses to set up other tokenizing properties.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>tokenizer</CODE> - the tokenizer to adjust</DL></DD></DL><HR><A NAME="setFieldSeparator(char)"><!-- --></A><H3>setFieldSeparator</H3><PRE>public void <B>setFieldSeparator</B>(char fieldSeparator)</PRE><DL><DD>This method must be called to setup the field seperator<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>fieldSeparator</CODE> - the char which separates the fields</DL></DD></DL><HR><A NAME="setColumnNames(java.util.List)"><!-- --></A><H3>setColumnNames</H3><PRE>public void <B>setColumnNames</B>(java.util.List columnNames)</PRE><DL><DD>Set the list of column names explicitly.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>columnNames</CODE> - A list of column names.</DL></DD></DL><HR><A NAME="readColumnNames()"><!-- --></A><H3>readColumnNames</H3><PRE>public void <B>readColumnNames</B>() throws java.io.IOException</PRE><DL><DD>Read the list of column names from the input reader using the tokenizer. If fieldNames are empty, we use the current fieldNumber + the EMPTYFIELDNAME to make one up.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - an IOException occurred.</DL></DD></DL><HR><A NAME="hasNextRow()"><!-- --></A><H3>hasNextRow</H3><PRE>public boolean <B>hasNextRow</B>() throws java.io.IOException</PRE><DL><DD>Determine whether a further row of values exists in the input.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the input has more rows.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - an IOException occurred.</DL></DD></DL><HR><A NAME="nextRow()"><!-- --></A><H3>nextRow</H3><PRE>public <A HREF="../../../../org/apache/turbine/util/ValueParser.html">ValueParser</A> <B>nextRow</B>() throws java.io.IOException, java.util.NoSuchElementException</PRE><DL><DD>Returns a ValueParser object containing the next row of values.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a ValueParser object.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - an IOException occurred.<DD><CODE>java.util.NoSuchElementException</CODE> - there are no more rows in the input.</DL></DD></DL><HR><A NAME="hasNext()"><!-- --></A><H3>hasNext</H3><PRE>public boolean <B>hasNext</B>()</PRE><DL><DD>Determine whether a further row of values exists in the input.<DD><DL><DT><B>Specified by: </B><DD><CODE>hasNext</CODE> in interface <CODE>java.util.Iterator</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the input has more rows.</DL></DD></DL><HR><A NAME="next()"><!-- --></A><H3>next</H3><PRE>public java.lang.Object <B>next</B>() throws java.util.NoSuchElementException</PRE><DL><DD>Returns a ValueParser object containing the next row of values.<DD><DL><DT><B>Specified by: </B><DD><CODE>next</CODE> in interface <CODE>java.util.Iterator</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a ValueParser object as an Object.<DT><B>Throws:</B><DD><CODE>java.util.NoSuchElementException</CODE> - there are no more rows in the input or an IOException occurred.</DL></DD></DL><HR><A NAME="remove()"><!-- --></A><H3>remove</H3><PRE>public void <B>remove</B>() throws java.lang.UnsupportedOperationException</PRE><DL><DD>The optional Iterator.remove method is not supported.<DD><DL><DT><B>Specified by: </B><DD><CODE>remove</CODE> in interface <CODE>java.util.Iterator</CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.UnsupportedOperationException</CODE> - the operation is not supported.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <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/DataStreamParser.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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/apache/turbine/util/CSVParser.html"><B>PREV CLASS</B></A> <A HREF="../../../../org/apache/turbine/util/DateSelector.html"><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="DataStreamParser.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR>Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -