📄 printstream.html
字号:
print</H3>
<PRE>
public void <B>print</B>(char c)</PRE>
<DL>
<DD>Print a character. The character is translated into one or more 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>c</CODE> - The <code>char</code> to be printed</DL>
</DD>
</DL>
<HR>
<A NAME="print(int)"><!-- --></A><H3>
print</H3>
<PRE>
public void <B>print</B>(int 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 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(char[])"><!-- --></A><H3>
print</H3>
<PRE>
public void <B>print</B>(char[] 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> 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> 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 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 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 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 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(char[])"><!-- --></A><H3>
println</H3>
<PRE>
public void <B>println</B>(char[] 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> 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> 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> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PrintStream.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<strong>MID Profile</strong></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../java/io/OutputStreamWriter.html"><B>PREV CLASS</B></A>
<A HREF="../../java/io/Reader.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>
<A HREF="PrintStream.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<font size="-1"><a href="mailto:midp-feedback@risc.sps.mot.com">Submit a comment or suggestion</a> Version 2.0 of MID Profile Specification<br>Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright (c) 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road,Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -