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

📄 outputstream.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="OutputStream()"><!-- --></A><H3>OutputStream</H3><PRE>public <B>OutputStream</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="write(int)"><!-- --></A><H3>write</H3><PRE>public abstract void <B>write</B>(int&nbsp;b)                    throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes the specified byte to this output stream. The general  contract for <code>write</code> is that one byte is written  to the output stream. The byte to be written is the eight  low-order bits of the argument <code>b</code>. The 24  high-order bits of <code>b</code> are ignored. <p> Subclasses of <code>OutputStream</code> must provide an  implementation for this method.<DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - the <code>byte</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs. In particular,              an <code>IOException</code> may be thrown if the              output stream has been closed.</DL></DD></DL><HR><A NAME="write(byte[])"><!-- --></A><H3>write</H3><PRE>public void <B>write</B>(byte[]&nbsp;b)           throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes <code>b.length</code> bytes from the specified byte array  to this output stream. The general contract for <code>write(b)</code>  is that it should have exactly the same effect as the call  <code>write(b, 0, b.length)</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - the data.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs.<DT><B>See Also: </B><DD><A HREF="../../java/io/OutputStream.html#write(byte[], int, int)"><CODE>write(byte[], int, int)</CODE></A></DL></DD></DL><HR><A NAME="write(byte[], int, int)"><!-- --></A><H3>write</H3><PRE>public void <B>write</B>(byte[]&nbsp;b,                  int&nbsp;off,                  int&nbsp;len)           throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes <code>len</code> bytes from the specified byte array  starting at offset <code>off</code> to this output stream.  The general contract for <code>write(b, off, len)</code> is that  some of the bytes in the array <code>b</code> are written to the  output stream in order; element <code>b[off]</code> is the first  byte written and <code>b[off+len-1]</code> is the last byte written  by this operation. <p> The <code>write</code> method of <code>OutputStream</code> calls  the write method of one argument on each of the bytes to be  written out. Subclasses are encouraged to override this method and  provide a more efficient implementation.  <p> If <code>b</code> is <code>null</code>, a  <code>NullPointerException</code> is thrown. <p> If <code>off</code> is negative, or <code>len</code> is negative, or  <code>off+len</code> is greater than the length of the array  <code>b</code>, then an <tt>IndexOutOfBoundsException</tt> is thrown.<DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - the data.<DD><CODE>off</CODE> - the start offset in the data.<DD><CODE>len</CODE> - the number of bytes to write.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs. In particular,              an <code>IOException</code> is thrown if the output              stream is closed.</DL></DD></DL><HR><A NAME="flush()"><!-- --></A><H3>flush</H3><PRE>public void <B>flush</B>()           throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Flushes this output stream and forces any buffered output bytes  to be written out. The general contract of <code>flush</code> is  that calling it is an indication that, if any bytes previously  written have been buffered by the implementation of the output  stream, such bytes should immediately be written to their  intended destination. <p> The <code>flush</code> method of <code>OutputStream</code> does nothing.<DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs.</DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>()           throws <A HREF="../../java/io/IOException.html">IOException</A></PRE><DL><DD>Closes this output stream and releases any system resources  associated with this stream. The general contract of <code>close</code>  is that it closes the output stream. A closed stream cannot perform  output operations and cannot be reopened. <p> The <code>close</code> method of <code>OutputStream</code> does nothing.<DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs.</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/OutputStream.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/ObjectStreamField.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../java/io/OutputStreamWriter.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="OutputStream.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;FIELD&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 + -