📄 jspwriter.html
字号:
</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 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Print a boolean value. The string produced by <code><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html#valueOf(boolean)" title="class or interface in java.lang"><CODE>String.valueOf(boolean)</CODE></A></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><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Print an integer. The string produced by <code><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html#valueOf(int)" title="class or interface in java.lang"><CODE>String.valueOf(int)</CODE></A></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><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - If an error occured while writing<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Integer.html#toString(int)" title="class or interface in java.lang"><CODE>Integer.toString(int)</CODE></A></DL></DD></DL><HR><A NAME="print(long)"><!-- --></A><H3>print</H3><PRE>public abstract void <B>print</B>(long l) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Print a long integer. The string produced by <code><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html#valueOf(long)" title="class or interface in java.lang"><CODE>String.valueOf(long)</CODE></A></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><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - If an error occured while writing<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Long.html#toString(long)" title="class or interface in java.lang"><CODE>Long.toString(long)</CODE></A></DL></DD></DL><HR><A NAME="print(float)"><!-- --></A><H3>print</H3><PRE>public abstract void <B>print</B>(float f) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Print a floating-point number. The string produced by <code><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html#valueOf(float)" title="class or interface in java.lang"><CODE>String.valueOf(float)</CODE></A></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><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - If an error occured while writing<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Float.html#toString(float)" title="class or interface in java.lang"><CODE>Float.toString(float)</CODE></A></DL></DD></DL><HR><A NAME="print(double)"><!-- --></A><H3>print</H3><PRE>public abstract void <B>print</B>(double d) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Print a double-precision floating-point number. The string produced by <code><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html#valueOf(double)" title="class or interface in java.lang"><CODE>String.valueOf(double)</CODE></A></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><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - If an error occured while writing<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Double.html#toString(double)" title="class or interface in java.lang"><CODE>Double.toString(double)</CODE></A></DL></DD></DL><HR><A NAME="print(char[])"><!-- --></A><H3>print</H3><PRE>public abstract void <B>print</B>(char[] s) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - If <code>s</code> is <code>null</code><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> s) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> obj) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Print an object. The string produced by the <code><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html#valueOf(java.lang.Object)" title="class or interface in java.lang"><CODE>String.valueOf(Object)</CODE></A></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><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - If an error occured while writing<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang"><CODE>Object.toString()</CODE></A></DL></DD></DL><HR><A NAME="println()"><!-- --></A><H3>println</H3><PRE>public abstract void <B>println</B>() throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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 x) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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 x) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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 x) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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 x) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -