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

📄 csvsaveservice.html

📁 测试工具jmeter可用来进行性能测试
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DT><B>Returns:</B><DD>config corresponding to the header items found or null if not a header line</DL>
</DD>
</DL>
<HR>

<A NAME="saveCSVStats(java.util.Vector, java.io.FileWriter)"><!-- --></A><H3>
saveCSVStats</H3>
<PRE>
public static void <B>saveCSVStats</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Vector.html" title="class or interface in java.util">Vector</A>&nbsp;data,
                                <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/FileWriter.html" title="class or interface in java.io">FileWriter</A>&nbsp;writer)
                         throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE>
<DL>
<DD>Method will save aggregate statistics as CSV. For now I put it here.
 Not sure if it should go in the newer SaveService instead of here.
 if we ever decide to get rid of this class, we'll need to move this
 method to the new save service.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>data</CODE> - vector of data rows<DD><CODE>writer</CODE> - output file
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="saveCSVStats(java.util.Vector, java.io.FileWriter, java.lang.String[])"><!-- --></A><H3>
saveCSVStats</H3>
<PRE>
public static void <B>saveCSVStats</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Vector.html" title="class or interface in java.util">Vector</A>&nbsp;data,
                                <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/FileWriter.html" title="class or interface in java.io">FileWriter</A>&nbsp;writer,
                                <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;headers)
                         throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE>
<DL>
<DD>Method will save aggregate statistics as CSV. For now I put it here.
 Not sure if it should go in the newer SaveService instead of here.
 if we ever decide to get rid of this class, we'll need to move this
 method to the new save service.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>data</CODE> - vector of data rows<DD><CODE>writer</CODE> - output file<DD><CODE>headers</CODE> - header names (if non-null)
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="saveCSVStats(javax.swing.table.DefaultTableModel, java.io.FileWriter)"><!-- --></A><H3>
saveCSVStats</H3>
<PRE>
public static void <B>saveCSVStats</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/table/DefaultTableModel.html" title="class or interface in javax.swing.table">DefaultTableModel</A>&nbsp;model,
                                <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/FileWriter.html" title="class or interface in java.io">FileWriter</A>&nbsp;writer)
                         throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE>
<DL>
<DD>Method saves aggregate statistics as CSV from a table model.
 Same as <A HREF="../../../../org/apache/jmeter/save/CSVSaveService.html#saveCSVStats(java.util.Vector, java.io.FileWriter, java.lang.String[])"><CODE>saveCSVStats(Vector, FileWriter, String[])</CODE></A> except
 that there is no need to create a Vector containing the data.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>model</CODE> - table model containing the data<DD><CODE>writer</CODE> - output file
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="resultToDelimitedString(org.apache.jmeter.samplers.SampleEvent)"><!-- --></A><H3>
resultToDelimitedString</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>resultToDelimitedString</B>(<A HREF="../../../../org/apache/jmeter/samplers/SampleEvent.html" title="class in org.apache.jmeter.samplers">SampleEvent</A>&nbsp;event)</PRE>
<DL>
<DD>Convert a result into a string, where the fields of the result are
 separated by the default delimiter.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>event</CODE> - the sample event to be converted
<DT><B>Returns:</B><DD>the separated value representation of the result</DL>
</DD>
</DL>
<HR>

<A NAME="resultToDelimitedString(org.apache.jmeter.samplers.SampleEvent, java.lang.String)"><!-- --></A><H3>
resultToDelimitedString</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>resultToDelimitedString</B>(<A HREF="../../../../org/apache/jmeter/samplers/SampleEvent.html" title="class in org.apache.jmeter.samplers">SampleEvent</A>&nbsp;event,
                                             <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;delimiter)</PRE>
<DL>
<DD>Convert a result into a string, where the fields of the result are
 separated by a specified String.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>event</CODE> - the sample event to be converted<DD><CODE>delimiter</CODE> - the separation string
<DT><B>Returns:</B><DD>the separated value representation of the result</DL>
</DD>
</DL>
<HR>

<A NAME="csvReadFile(java.io.BufferedReader, char)"><!-- --></A><H3>
csvReadFile</H3>
<PRE>
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] <B>csvReadFile</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/BufferedReader.html" title="class or interface in java.io">BufferedReader</A>&nbsp;infile,
                                   char&nbsp;delim)
                            throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE>
<DL>
<DD>Reads from file and splits input into strings according to the delimiter,
 taking note of quoted strings.
 
 Handles DOS (CRLF), Unix (LF), and Mac (CR) line-endings equally.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>infile</CODE> - input file  - must support mark(1)<DD><CODE>delim</CODE> - delimiter (e.g. comma)
<DT><B>Returns:</B><DD>array of strings
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - also for unexpected quote characters</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="../../../../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>
<b>Apache JMeter</b></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../org/apache/jmeter/save/ListenerResultWrapper.html" title="class in org.apache.jmeter.save"><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="CSVSaveService.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;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&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>
Copyright &#xA9; 1998-2008 Apache Software Foundation. All Rights Reserved.
</BODY>
</HTML>

⌨️ 快捷键说明

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