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

📄 jspwriter.html

📁 jsp doc sun java
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DL><DD>Print an object.  The string produced by the <code><CODE>String.valueOf(Object)</CODE></code> method is written to the JspWriter's buffer or, if no buffer is used, directly to the underlying writer.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - The <code>Object</code> to be printed<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an error occured while writing<DT><B>See Also:</B><DD><CODE>Object.toString()</CODE></DL></DD></DL><HR><A NAME="println()"><!-- --></A><H3>println</H3><PRE>public abstract void <B>println</B>()                      throws java.io.IOException</PRE><DL><DD>Terminate the current line by writing the line separator string.  The line separator string is defined by the system property <code>line.separator</code>, and is not necessarily a single newline character (<code>'\n'</code>).<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an error occured while writing</DL></DD></DL><HR><A NAME="println(boolean)"><!-- --></A><H3>println</H3><PRE>public abstract void <B>println</B>(boolean&nbsp;x)                      throws java.io.IOException</PRE><DL><DD>Print a boolean value and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../../javax/servlet/jsp/JspWriter.html#print(boolean)"><CODE>print(boolean)</CODE></A></code> and then <code><A HREF="../../../javax/servlet/jsp/JspWriter.html#println()"><CODE>println()</CODE></A></code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the boolean to write<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an error occured while writing</DL></DD></DL><HR><A NAME="println(char)"><!-- --></A><H3>println</H3><PRE>public abstract void <B>println</B>(char&nbsp;x)                      throws java.io.IOException</PRE><DL><DD>Print a character and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../../javax/servlet/jsp/JspWriter.html#print(char)"><CODE>print(char)</CODE></A></code> and then <code><A HREF="../../../javax/servlet/jsp/JspWriter.html#println()"><CODE>println()</CODE></A></code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the char to write<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an error occured while writing</DL></DD></DL><HR><A NAME="println(int)"><!-- --></A><H3>println</H3><PRE>public abstract void <B>println</B>(int&nbsp;x)                      throws java.io.IOException</PRE><DL><DD>Print an integer and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../../javax/servlet/jsp/JspWriter.html#print(int)"><CODE>print(int)</CODE></A></code> and then <code><A HREF="../../../javax/servlet/jsp/JspWriter.html#println()"><CODE>println()</CODE></A></code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the int to write<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an error occured while writing</DL></DD></DL><HR><A NAME="println(long)"><!-- --></A><H3>println</H3><PRE>public abstract void <B>println</B>(long&nbsp;x)                      throws java.io.IOException</PRE><DL><DD>Print a long integer and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../../javax/servlet/jsp/JspWriter.html#print(long)"><CODE>print(long)</CODE></A></code> and then <code><A HREF="../../../javax/servlet/jsp/JspWriter.html#println()"><CODE>println()</CODE></A></code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the long to write<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an error occured while writing</DL></DD></DL><HR><A NAME="println(float)"><!-- --></A><H3>println</H3><PRE>public abstract void <B>println</B>(float&nbsp;x)                      throws java.io.IOException</PRE><DL><DD>Print a floating-point number and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../../javax/servlet/jsp/JspWriter.html#print(float)"><CODE>print(float)</CODE></A></code> and then <code><A HREF="../../../javax/servlet/jsp/JspWriter.html#println()"><CODE>println()</CODE></A></code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the float to write<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an error occured while writing</DL></DD></DL><HR><A NAME="println(double)"><!-- --></A><H3>println</H3><PRE>public abstract void <B>println</B>(double&nbsp;x)                      throws java.io.IOException</PRE><DL><DD>Print a double-precision floating-point number and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../../javax/servlet/jsp/JspWriter.html#print(double)"><CODE>print(double)</CODE></A></code> and then <code><A HREF="../../../javax/servlet/jsp/JspWriter.html#println()"><CODE>println()</CODE></A></code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the double to write<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an error occured while writing</DL></DD></DL><HR><A NAME="println(char[])"><!-- --></A><H3>println</H3><PRE>public abstract void <B>println</B>(char[]&nbsp;x)                      throws java.io.IOException</PRE><DL><DD>Print an array of characters and then terminate the line.  This method behaves as though it invokes <code>print(char[])</code> and then <code>println()</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the char[] to write<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an error occured while writing</DL></DD></DL><HR><A NAME="println(java.lang.String)"><!-- --></A><H3>println</H3><PRE>public abstract void <B>println</B>(java.lang.String&nbsp;x)                      throws java.io.IOException</PRE><DL><DD>Print a String and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../../javax/servlet/jsp/JspWriter.html#print(java.lang.String)"><CODE>print(String)</CODE></A></code> and then <code><A HREF="../../../javax/servlet/jsp/JspWriter.html#println()"><CODE>println()</CODE></A></code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the String to write<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an error occured while writing</DL></DD></DL><HR><A NAME="println(java.lang.Object)"><!-- --></A><H3>println</H3><PRE>public abstract void <B>println</B>(java.lang.Object&nbsp;x)                      throws java.io.IOException</PRE><DL><DD>Print an Object and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../../javax/servlet/jsp/JspWriter.html#print(java.lang.Object)"><CODE>print(Object)</CODE></A></code> and then <code><A HREF="../../../javax/servlet/jsp/JspWriter.html#println()"><CODE>println()</CODE></A></code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the Object to write<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an error occured while writing</DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public abstract void <B>clear</B>()                    throws java.io.IOException</PRE><DL><DD>Clear the contents of the buffer. If the buffer has been already been flushed then the clear operation shall throw an IOException to signal the fact that some data has already been irrevocably  written to the client response stream.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an I/O error occurs</DL></DD></DL><HR><A NAME="clearBuffer()"><!-- --></A><H3>clearBuffer</H3><PRE>public abstract void <B>clearBuffer</B>()                          throws java.io.IOException</PRE><DL><DD>Clears the current contents of the buffer. Unlike clear(), this method will not throw an IOException if the buffer has already been flushed. It merely clears the current content of the buffer and returns.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an I/O error occurs</DL></DD></DL><HR><A NAME="flush()"><!-- --></A><H3>flush</H3><PRE>public abstract void <B>flush</B>()                    throws java.io.IOException</PRE><DL><DD>Flush the stream.  If the stream has saved any characters from the various write() methods in a buffer, write them immediately to their intended destination.  Then, if that destination is another character or byte stream, flush it.  Thus one flush() invocation will flush all the buffers in a chain of Writers and OutputStreams. <p> The method may be invoked indirectly if the buffer size is exceeded. <p> Once a stream has been closed, further write() or flush() invocations will cause an IOException to be thrown.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an I/O error occurs</DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public abstract void <B>close</B>()                    throws java.io.IOException</PRE><DL><DD>Close the stream, flushing it first. <p> This method needs not be invoked explicitly for the initial JspWriter as the code generated by the JSP container will automatically include a call to close(). <p> Closing a previously-closed stream, unlike flush(), has no effect.<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an I/O error occurs</DL></DD></DL><HR><A NAME="getBufferSize()"><!-- --></A><H3>getBufferSize</H3><PRE>public int <B>getBufferSize</B>()</PRE><DL><DD>This method returns the size of the buffer used by the JspWriter.<P><DD><DL><DT><B>Returns:</B><DD>the size of the buffer in bytes, or 0 is unbuffered.</DL></DD></DL><HR><A NAME="getRemaining()"><!-- --></A><H3>getRemaining</H3><PRE>public abstract int <B>getRemaining</B>()</PRE><DL><DD>This method returns the number of unused bytes in the buffer.<P><DD><DL><DT><B>Returns:</B><DD>the number of bytes unused in the buffer</DL></DD></DL><HR><A NAME="isAutoFlush()"><!-- --></A><H3>isAutoFlush</H3><PRE>public boolean <B>isAutoFlush</B>()</PRE><DL><DD>This method indicates whether the JspWriter is autoFlushing.<P><DD><DL><DT><B>Returns:</B><DD>if this JspWriter is auto flushing or throwing IOExceptions      on buffer overflow conditions</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="class-use/JspWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../javax/servlet/jsp/JspFactory.html" title="class in javax.servlet.jsp"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/servlet/jsp/PageContext.html" title="class in javax.servlet.jsp"><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="JspWriter.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;<A HREF="#constructor_summary">CONSTR</A>&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;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright &copy; 1999-2002 The Apache Software Foundation.  All Rights Reserved.</BODY></HTML>

⌨️ 快捷键说明

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