📄 jspwriter.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/servlet/jsp/JspWriter.html#print(java.lang.String)">print</A></B>(java.lang.String s)</CODE><BR> Print a string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/servlet/jsp/JspWriter.html#println()">println</A></B>()</CODE><BR> Terminate the current line by writing the line separator string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/servlet/jsp/JspWriter.html#println(boolean)">println</A></B>(boolean x)</CODE><BR> Print a boolean value and then terminate the line.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/servlet/jsp/JspWriter.html#println(char)">println</A></B>(char x)</CODE><BR> Print a character and then terminate the line.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/servlet/jsp/JspWriter.html#println(char[])">println</A></B>(char[] x)</CODE><BR> Print an array of characters and then terminate the line.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/servlet/jsp/JspWriter.html#println(double)">println</A></B>(double x)</CODE><BR> Print a double-precision floating-point number and then terminate the line.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/servlet/jsp/JspWriter.html#println(float)">println</A></B>(float x)</CODE><BR> Print a floating-point number and then terminate the line.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/servlet/jsp/JspWriter.html#println(int)">println</A></B>(int x)</CODE><BR> Print an integer and then terminate the line.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/servlet/jsp/JspWriter.html#println(long)">println</A></B>(long x)</CODE><BR> Print a long integer and then terminate the line.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/servlet/jsp/JspWriter.html#println(java.lang.Object)">println</A></B>(java.lang.Object x)</CODE><BR> Print an Object and then terminate the line.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/servlet/jsp/JspWriter.html#println(java.lang.String)">println</A></B>(java.lang.String x)</CODE><BR> Print a String and then terminate the line.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.io.Writer"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.io.Writer</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>write, write, write, write, write</CODE></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, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="NO_BUFFER"><!-- --></A><H3>NO_BUFFER</H3><PRE>public static final int <B>NO_BUFFER</B></PRE><DL><DD>Constant indicating that the Writer is not buffering output.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.servlet.jsp.JspWriter.NO_BUFFER">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULT_BUFFER"><!-- --></A><H3>DEFAULT_BUFFER</H3><PRE>public static final int <B>DEFAULT_BUFFER</B></PRE><DL><DD>Constant indicating that the Writer is buffered and is using the implementation default buffer size.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.servlet.jsp.JspWriter.DEFAULT_BUFFER">Constant Field Values</A></DL></DL><HR><A NAME="UNBOUNDED_BUFFER"><!-- --></A><H3>UNBOUNDED_BUFFER</H3><PRE>public static final int <B>UNBOUNDED_BUFFER</B></PRE><DL><DD>Constant indicating that the Writer is buffered and is unbounded; this is used in BodyContent.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.servlet.jsp.JspWriter.UNBOUNDED_BUFFER">Constant Field Values</A></DL></DL><HR><A NAME="bufferSize"><!-- --></A><H3>bufferSize</H3><PRE>protected int <B>bufferSize</B></PRE><DL><DD>The size of the buffer used by the JspWriter.<P><DL></DL></DL><HR><A NAME="autoFlush"><!-- --></A><H3>autoFlush</H3><PRE>protected boolean <B>autoFlush</B></PRE><DL><DD>Whether the JspWriter is autoflushing.<P><DL></DL></DL><!-- ========= 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="JspWriter(int, boolean)"><!-- --></A><H3>JspWriter</H3><PRE>protected <B>JspWriter</B>(int bufferSize, boolean autoFlush)</PRE><DL><DD>Protected constructor.<P><DT><B>Parameters:</B><DD><CODE>bufferSize</CODE> - the size of the buffer to be used by the JspWriter<DD><CODE>autoFlush</CODE> - whether the JspWriter should be autoflushing</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="newLine()"><!-- --></A><H3>newLine</H3><PRE>public abstract void <B>newLine</B>() throws java.io.IOException</PRE><DL><DD>Write a line separator. The line separator string is defined by the system property <tt>line.separator</tt>, and is not necessarily a single newline ('\n') character.<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="print(boolean)"><!-- --></A><H3>print</H3><PRE>public abstract void <B>print</B>(boolean b) throws java.io.IOException</PRE><DL><DD>Print a boolean value. The string produced by <code><CODE>String.valueOf(boolean)</CODE></code> 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>b</CODE> - The <code>boolean</code> to be printed<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an error occured while writing</DL></DD></DL><HR><A NAME="print(char)"><!-- --></A><H3>print</H3><PRE>public abstract void <B>print</B>(char c) throws java.io.IOException</PRE><DL><DD>Print a character. The character 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>c</CODE> - The <code>char</code> to be printed<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an error occured while writing</DL></DD></DL><HR><A NAME="print(int)"><!-- --></A><H3>print</H3><PRE>public abstract void <B>print</B>(int i) throws java.io.IOException</PRE><DL><DD>Print an integer. The string produced by <code><CODE>String.valueOf(int)</CODE></code> 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>i</CODE> - The <code>int</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>Integer.toString(int)</CODE></DL></DD></DL><HR><A NAME="print(long)"><!-- --></A><H3>print</H3><PRE>public abstract void <B>print</B>(long l) throws java.io.IOException</PRE><DL><DD>Print a long integer. The string produced by <code><CODE>String.valueOf(long)</CODE></code> 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>l</CODE> - The <code>long</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>Long.toString(long)</CODE></DL></DD></DL><HR><A NAME="print(float)"><!-- --></A><H3>print</H3><PRE>public abstract void <B>print</B>(float f) throws java.io.IOException</PRE><DL><DD>Print a floating-point number. The string produced by <code><CODE>String.valueOf(float)</CODE></code> 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>f</CODE> - The <code>float</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>Float.toString(float)</CODE></DL></DD></DL><HR><A NAME="print(double)"><!-- --></A><H3>print</H3><PRE>public abstract void <B>print</B>(double d) throws java.io.IOException</PRE><DL><DD>Print a double-precision floating-point number. The string produced by <code><CODE>String.valueOf(double)</CODE></code> 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>d</CODE> - The <code>double</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>Double.toString(double)</CODE></DL></DD></DL><HR><A NAME="print(char[])"><!-- --></A><H3>print</H3><PRE>public abstract void <B>print</B>(char[] s) throws java.io.IOException</PRE><DL><DD>Print an array of characters. The characters are 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>s</CODE> - The array of chars to be printed<DT><B>Throws:</B><DD><CODE>java.lang.NullPointerException</CODE> - If <code>s</code> is <code>null</code><DD><CODE>java.io.IOException</CODE> - If an error occured while writing</DL></DD></DL><HR><A NAME="print(java.lang.String)"><!-- --></A><H3>print</H3><PRE>public abstract void <B>print</B>(java.lang.String s) throws java.io.IOException</PRE><DL><DD>Print a string. If the argument is <code>null</code> then the string <code>"null"</code> is printed. Otherwise, the string's characters are 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>s</CODE> - The <code>String</code> to be printed<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If an error occured while writing</DL></DD></DL><HR><A NAME="print(java.lang.Object)"><!-- --></A><H3>print</H3><PRE>public abstract void <B>print</B>(java.lang.Object obj) throws java.io.IOException</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -