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

📄 printstream.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</DL><HR><A NAME="print(int)"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(int&nbsp;i)</PRE><DL><DD>Print an integer.  The string produced by <code><A HREF="../../java/lang/String.html#valueOf(int)"><CODE>String.valueOf(int)</CODE></A></code> is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the <code><A HREF="../../java/io/PrintStream.html#write(int)"><CODE>write(int)</CODE></A></code> method.<DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - The <code>int</code> to be printed<DT><B>See Also: </B><DD><A HREF="../../java/lang/Integer.html#toString(int)"><CODE>Integer.toString(int)</CODE></A></DL></DD></DL><HR><A NAME="print(long)"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(long&nbsp;l)</PRE><DL><DD>Print a long integer.  The string produced by <code><A HREF="../../java/lang/String.html#valueOf(long)"><CODE>String.valueOf(long)</CODE></A></code> is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the <code><A HREF="../../java/io/PrintStream.html#write(int)"><CODE>write(int)</CODE></A></code> method.<DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - The <code>long</code> to be printed<DT><B>See Also: </B><DD><A HREF="../../java/lang/Long.html#toString(long)"><CODE>Long.toString(long)</CODE></A></DL></DD></DL><HR><A NAME="print(float)"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(float&nbsp;f)</PRE><DL><DD>Print a floating-point number.  The string produced by <code><A HREF="../../java/lang/String.html#valueOf(float)"><CODE>String.valueOf(float)</CODE></A></code> is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the <code><A HREF="../../java/io/PrintStream.html#write(int)"><CODE>write(int)</CODE></A></code> method.<DD><DL><DT><B>Parameters:</B><DD><CODE>f</CODE> - The <code>float</code> to be printed<DT><B>See Also: </B><DD><A HREF="../../java/lang/Float.html#toString(float)"><CODE>Float.toString(float)</CODE></A></DL></DD></DL><HR><A NAME="print(double)"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(double&nbsp;d)</PRE><DL><DD>Print a double-precision floating-point number.  The string produced by <code><A HREF="../../java/lang/String.html#valueOf(double)"><CODE>String.valueOf(double)</CODE></A></code> is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the <code><A HREF="../../java/io/PrintStream.html#write(int)"><CODE>write(int)</CODE></A></code> method.<DD><DL><DT><B>Parameters:</B><DD><CODE>d</CODE> - The <code>double</code> to be printed<DT><B>See Also: </B><DD><A HREF="../../java/lang/Double.html#toString(double)"><CODE>Double.toString(double)</CODE></A></DL></DD></DL><HR><A NAME="print(char[])"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(char[]&nbsp;s)</PRE><DL><DD>Print an array of characters.  The characters are converted into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the <code><A HREF="../../java/io/PrintStream.html#write(int)"><CODE>write(int)</CODE></A></code> method.<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="../../java/lang/NullPointerException.html">NullPointerException</A></CODE> - If <code>s</code> is <code>null</code></DL></DD></DL><HR><A NAME="print(java.lang.String)"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;s)</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 converted into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the <code><A HREF="../../java/io/PrintStream.html#write(int)"><CODE>write(int)</CODE></A></code> method.<DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - The <code>String</code> to be printed</DL></DD></DL><HR><A NAME="print(java.lang.Object)"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(<A HREF="../../java/lang/Object.html">Object</A>&nbsp;obj)</PRE><DL><DD>Print an object.  The string produced by the <code><A HREF="../../java/lang/String.html#valueOf(java.lang.Object)"><CODE>String.valueOf(Object)</CODE></A></code> method is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the <code><A HREF="../../java/io/PrintStream.html#write(int)"><CODE>write(int)</CODE></A></code> method.<DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - The <code>Object</code> to be printed<DT><B>See Also: </B><DD><A HREF="../../java/lang/Object.html#toString()"><CODE>Object.toString()</CODE></A></DL></DD></DL><HR><A NAME="println()"><!-- --></A><H3>println</H3><PRE>public void <B>println</B>()</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>).</DL><HR><A NAME="println(boolean)"><!-- --></A><H3>println</H3><PRE>public void <B>println</B>(boolean&nbsp;x)</PRE><DL><DD>Print a boolean and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../java/io/PrintStream.html#print(boolean)"><CODE>print(boolean)</CODE></A></code> and then <code><A HREF="../../java/io/PrintStream.html#println()"><CODE>println()</CODE></A></code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - The <code>boolean</code> to be printed</DL></DD></DL><HR><A NAME="println(char)"><!-- --></A><H3>println</H3><PRE>public void <B>println</B>(char&nbsp;x)</PRE><DL><DD>Print a character and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../java/io/PrintStream.html#print(char)"><CODE>print(char)</CODE></A></code> and then <code><A HREF="../../java/io/PrintStream.html#println()"><CODE>println()</CODE></A></code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - The <code>char</code> to be printed.</DL></DD></DL><HR><A NAME="println(int)"><!-- --></A><H3>println</H3><PRE>public void <B>println</B>(int&nbsp;x)</PRE><DL><DD>Print an integer and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../java/io/PrintStream.html#print(int)"><CODE>print(int)</CODE></A></code> and then <code><A HREF="../../java/io/PrintStream.html#println()"><CODE>println()</CODE></A></code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - The <code>int</code> to be printed.</DL></DD></DL><HR><A NAME="println(long)"><!-- --></A><H3>println</H3><PRE>public void <B>println</B>(long&nbsp;x)</PRE><DL><DD>Print a long and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../java/io/PrintStream.html#print(long)"><CODE>print(long)</CODE></A></code> and then <code><A HREF="../../java/io/PrintStream.html#println()"><CODE>println()</CODE></A></code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - a The <code>long</code> to be printed.</DL></DD></DL><HR><A NAME="println(float)"><!-- --></A><H3>println</H3><PRE>public void <B>println</B>(float&nbsp;x)</PRE><DL><DD>Print a float and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../java/io/PrintStream.html#print(float)"><CODE>print(float)</CODE></A></code> and then <code><A HREF="../../java/io/PrintStream.html#println()"><CODE>println()</CODE></A></code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - The <code>float</code> to be printed.</DL></DD></DL><HR><A NAME="println(double)"><!-- --></A><H3>println</H3><PRE>public void <B>println</B>(double&nbsp;x)</PRE><DL><DD>Print a double and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../java/io/PrintStream.html#print(double)"><CODE>print(double)</CODE></A></code> and then <code><A HREF="../../java/io/PrintStream.html#println()"><CODE>println()</CODE></A></code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - The <code>double</code> to be printed.</DL></DD></DL><HR><A NAME="println(char[])"><!-- --></A><H3>println</H3><PRE>public void <B>println</B>(char[]&nbsp;x)</PRE><DL><DD>Print an array of characters and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../java/io/PrintStream.html#print(char[])"><CODE>print(char[])</CODE></A></code> and then <code><A HREF="../../java/io/PrintStream.html#println()"><CODE>println()</CODE></A></code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - an array of chars to print.</DL></DD></DL><HR><A NAME="println(java.lang.String)"><!-- --></A><H3>println</H3><PRE>public void <B>println</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;x)</PRE><DL><DD>Print a String and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../java/io/PrintStream.html#print(java.lang.String)"><CODE>print(String)</CODE></A></code> and then <code><A HREF="../../java/io/PrintStream.html#println()"><CODE>println()</CODE></A></code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - The <code>String</code> to be printed.</DL></DD></DL><HR><A NAME="println(java.lang.Object)"><!-- --></A><H3>println</H3><PRE>public void <B>println</B>(<A HREF="../../java/lang/Object.html">Object</A>&nbsp;x)</PRE><DL><DD>Print an Object and then terminate the line.  This method behaves as though it invokes <code><A HREF="../../java/io/PrintStream.html#print(java.lang.Object)"><CODE>print(Object)</CODE></A></code> and then <code><A HREF="../../java/io/PrintStream.html#println()"><CODE>println()</CODE></A></code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - The <code>Object</code> to be printed.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <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/PrintStream.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-files/index-1.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>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../java/io/PipedWriter.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../java/io/PrintWriter.html"><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="PrintStream.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_java.io.FilterOutputStream">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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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