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

📄 servletutilities.html

📁 jfreechart1。0。2的api。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves the chart as a PNG format file in the temporary directory.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/servlet/ServletUtilities.html#searchReplace(java.lang.String, java.lang.String, java.lang.String)">searchReplace</A></B>(java.lang.String&nbsp;inputString,                           java.lang.String&nbsp;searchString,                           java.lang.String&nbsp;replaceString)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Perform a search/replace operation on a String There are String methods to do this since (JDK 1.4)</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/servlet/ServletUtilities.html#sendTempFile(java.io.File, javax.servlet.http.HttpServletResponse)">sendTempFile</A></B>(java.io.File&nbsp;file,                         javax.servlet.http.HttpServletResponse&nbsp;response)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Binary streams the specified file to the HTTP response in 1KB chunks.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/servlet/ServletUtilities.html#sendTempFile(java.io.File, javax.servlet.http.HttpServletResponse, java.lang.String)">sendTempFile</A></B>(java.io.File&nbsp;file,                         javax.servlet.http.HttpServletResponse&nbsp;response,                         java.lang.String&nbsp;mimeType)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Binary streams the specified file to the HTTP response in 1KB chunks.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/servlet/ServletUtilities.html#sendTempFile(java.lang.String, javax.servlet.http.HttpServletResponse)">sendTempFile</A></B>(java.lang.String&nbsp;filename,                         javax.servlet.http.HttpServletResponse&nbsp;response)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Binary streams the specified file in the temporary directory to the HTTP response in 1KB chunks.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/servlet/ServletUtilities.html#setTempFilePrefix(java.lang.String)">setTempFilePrefix</A></B>(java.lang.String&nbsp;prefix)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the prefix for the temporary file names generated by this class.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/chart/servlet/ServletUtilities.html#setTempOneTimeFilePrefix(java.lang.String)">setTempOneTimeFilePrefix</A></B>(java.lang.String&nbsp;prefix)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the prefix for the "one time" temporary file names generated by  this class.</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"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ServletUtilities()"><!-- --></A><H3>ServletUtilities</H3><PRE>public <A HREF="../../../../src-html/org/jfree/chart/servlet/ServletUtilities.html#line.80"><B>ServletUtilities</B></A>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getTempFilePrefix()"><!-- --></A><H3>getTempFilePrefix</H3><PRE>public static java.lang.String <A HREF="../../../../src-html/org/jfree/chart/servlet/ServletUtilities.html#line.93"><B>getTempFilePrefix</B></A>()</PRE><DL><DD>Returns the prefix for the temporary file names generated by this class.<P><DD><DL><DT><B>Returns:</B><DD>The prefix (never <code>null</code>).</DL></DD></DL><HR><A NAME="setTempFilePrefix(java.lang.String)"><!-- --></A><H3>setTempFilePrefix</H3><PRE>public static void <A HREF="../../../../src-html/org/jfree/chart/servlet/ServletUtilities.html#line.102"><B>setTempFilePrefix</B></A>(java.lang.String&nbsp;prefix)</PRE><DL><DD>Sets the prefix for the temporary file names generated by this class.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>prefix</CODE> - the prefix (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="getTempOneTimeFilePrefix()"><!-- --></A><H3>getTempOneTimeFilePrefix</H3><PRE>public static java.lang.String <A HREF="../../../../src-html/org/jfree/chart/servlet/ServletUtilities.html#line.115"><B>getTempOneTimeFilePrefix</B></A>()</PRE><DL><DD>Returns the prefix for "one time" temporary file names generated by this class.<P><DD><DL><DT><B>Returns:</B><DD>The prefix.</DL></DD></DL><HR><A NAME="setTempOneTimeFilePrefix(java.lang.String)"><!-- --></A><H3>setTempOneTimeFilePrefix</H3><PRE>public static void <A HREF="../../../../src-html/org/jfree/chart/servlet/ServletUtilities.html#line.125"><B>setTempOneTimeFilePrefix</B></A>(java.lang.String&nbsp;prefix)</PRE><DL><DD>Sets the prefix for the "one time" temporary file names generated by  this class.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>prefix</CODE> - the prefix (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="saveChartAsPNG(org.jfree.chart.JFreeChart, int, int, javax.servlet.http.HttpSession)"><!-- --></A><H3>saveChartAsPNG</H3><PRE>public static java.lang.String <A HREF="../../../../src-html/org/jfree/chart/servlet/ServletUtilities.html#line.147"><B>saveChartAsPNG</B></A>(<A HREF="../../../../org/jfree/chart/JFreeChart.html" title="class in org.jfree.chart">JFreeChart</A>&nbsp;chart,                                              int&nbsp;width,                                              int&nbsp;height,                                              javax.servlet.http.HttpSession&nbsp;session)                                       throws java.io.IOException</PRE><DL><DD>Saves the chart as a PNG format file in the temporary directory.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>chart</CODE> - the JFreeChart to be saved.<DD><CODE>width</CODE> - the width of the chart.<DD><CODE>height</CODE> - the height of the chart.<DD><CODE>session</CODE> - the HttpSession of the client (if <code>null</code>, the                 temporary file is marked as "one-time" and deleted by                  the <A HREF="../../../../org/jfree/chart/servlet/DisplayChart.html" title="class in org.jfree.chart.servlet"><CODE>DisplayChart</CODE></A> servlet right after it is                 streamed to the client).<DT><B>Returns:</B><DD>The filename of the chart saved in the temporary directory.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there is a problem saving the file.</DL></DD></DL><HR><A NAME="saveChartAsPNG(org.jfree.chart.JFreeChart, int, int, org.jfree.chart.ChartRenderingInfo, javax.servlet.http.HttpSession)"><!-- --></A><H3>saveChartAsPNG</H3><PRE>public static java.lang.String <A HREF="../../../../src-html/org/jfree/chart/servlet/ServletUtilities.html#line.174"><B>saveChartAsPNG</B></A>(<A HREF="../../../../org/jfree/chart/JFreeChart.html" title="class in org.jfree.chart">JFreeChart</A>&nbsp;chart,                                              int&nbsp;width,                                              int&nbsp;height,                                              <A HREF="../../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A>&nbsp;info,                                              javax.servlet.http.HttpSession&nbsp;session)                                       throws java.io.IOException</PRE><DL><DD>Saves the chart as a PNG format file in the temporary directory and populates the <A HREF="../../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart"><CODE>ChartRenderingInfo</CODE></A> object which can be used to  generate an HTML image map.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>chart</CODE> - the chart to be saved (<code>null</code> not permitted).<DD><CODE>width</CODE> - the width of the chart.<DD><CODE>height</CODE> - the height of the chart.<DD><CODE>info</CODE> - the ChartRenderingInfo object to be populated               (<code>null</code> permitted).<DD><CODE>session</CODE> - the HttpSession of the client (if <code>null</code>, the                 temporary file is marked as "one-time" and deleted by                  the <A HREF="../../../../org/jfree/chart/servlet/DisplayChart.html" title="class in org.jfree.chart.servlet"><CODE>DisplayChart</CODE></A> servlet right after it is                 streamed to the client).<DT><B>Returns:</B><DD>The filename of the chart saved in the temporary directory.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there is a problem saving the file.</DL></DD></DL><HR><A NAME="saveChartAsJPEG(org.jfree.chart.JFreeChart, int, int, javax.servlet.http.HttpSession)"><!-- --></A><H3>saveChartAsJPEG</H3><PRE>public static java.lang.String <A HREF="../../../../src-html/org/jfree/chart/servlet/ServletUtilities.html#line.215"><B>saveChartAsJPEG</B></A>(<A HREF="../../../../org/jfree/chart/JFreeChart.html" title="class in org.jfree.chart">JFreeChart</A>&nbsp;chart,                                               int&nbsp;width,                                               int&nbsp;height,                                               javax.servlet.http.HttpSession&nbsp;session)                                        throws java.io.IOException</PRE><DL><DD>Saves the chart as a JPEG format file in the temporary directory. <p>

⌨️ 快捷键说明

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