outstream.html

来自「java和flash接口编程」· HTML 代码 · 共 969 行 · 第 1/3 页

HTML
969
字号
<HR>

<A NAME="writeSI16(short)"><!-- --></A><H3>
writeSI16</H3>
<PRE>
public void <B>writeSI16</B>(short&nbsp;value)
               throws java.io.IOException</PRE>
<DL>
<DD>Write a 16 bit signed value to the out stream
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeUI32(long)"><!-- --></A><H3>
writeUI32</H3>
<PRE>
public void <B>writeUI32</B>(long&nbsp;value)
               throws java.io.IOException</PRE>
<DL>
<DD>Write a 32 bit unsigned value to the out stream
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeString(java.lang.String, java.lang.String)"><!-- --></A><H3>
writeString</H3>
<PRE>
public int <B>writeString</B>(java.lang.String&nbsp;s,
                       java.lang.String&nbsp;encoding)
                throws java.io.IOException</PRE>
<DL>
<DD>Write a string to the output stream using the default encoding and add terminating null
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the byte size of the written string (including the null terminator).
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeString(byte[])"><!-- --></A><H3>
writeString</H3>
<PRE>
public void <B>writeString</B>(byte[]&nbsp;string)
                 throws java.io.IOException</PRE>
<DL>
<DD>Write a string to the output stream and add terminating null
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getStringLength(byte[])"><!-- --></A><H3>
getStringLength</H3>
<PRE>
public static int <B>getStringLength</B>(byte[]&nbsp;string)</PRE>
<DL>
<DD>Calculate the byte length of a string as it would be written to the output stream
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getStringLength(java.lang.String)"><!-- --></A><H3>
getStringLength</H3>
<PRE>
public static int <B>getStringLength</B>(java.lang.String&nbsp;string)</PRE>
<DL>
<DD>Calculate the byte length of a string as it would be written to the output stream using the default character encoding
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="determineSignedBitSize(int)"><!-- --></A><H3>
determineSignedBitSize</H3>
<PRE>
public static int <B>determineSignedBitSize</B>(int&nbsp;value)</PRE>
<DL>
<DD>Determine the minimum number of bits required to hold the given signed value
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="determineUnsignedBitSize(long)"><!-- --></A><H3>
determineUnsignedBitSize</H3>
<PRE>
public static int <B>determineUnsignedBitSize</B>(long&nbsp;value)</PRE>
<DL>
<DD>Determine the minimum number of bits required to hold the given unsigned value (may be zero)
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="writeFloat(float)"><!-- --></A><H3>
writeFloat</H3>
<PRE>
public void <B>writeFloat</B>(float&nbsp;value)
                throws java.io.IOException</PRE>
<DL>
<DD>Write a float value
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeDouble(double)"><!-- --></A><H3>
writeDouble</H3>
<PRE>
public void <B>writeDouble</B>(double&nbsp;value)
                 throws java.io.IOException</PRE>
<DL>
<DD>Write a double value
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeSI32(int)"><!-- --></A><H3>
writeSI32</H3>
<PRE>
public void <B>writeSI32</B>(int&nbsp;value)
               throws java.io.IOException</PRE>
<DL>
<DD>Write a 32 bit signed value
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="sintTo2Bytes(int)"><!-- --></A><H3>
sintTo2Bytes</H3>
<PRE>
public static byte[] <B>sintTo2Bytes</B>(int&nbsp;value)</PRE>
<DL>
<DD>Util to convert a signed int to 2 bytes
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="uintTo2Bytes(int)"><!-- --></A><H3>
uintTo2Bytes</H3>
<PRE>
public static byte[] <B>uintTo2Bytes</B>(int&nbsp;value)</PRE>
<DL>
<DD>Util to convert an unsigned int to 2 bytes
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="uintTo4Bytes(int)"><!-- --></A><H3>
uintTo4Bytes</H3>
<PRE>
public static byte[] <B>uintTo4Bytes</B>(int&nbsp;value)</PRE>
<DL>
<DD>Util to convert an unsigned int to 4 bytes
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="uintToByte(int)"><!-- --></A><H3>
uintToByte</H3>
<PRE>
public static byte <B>uintToByte</B>(int&nbsp;value)</PRE>
<DL>
<DD>Util to convert an unsigned int to an unsigned byte
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="write(int)"><!-- --></A><H3>
write</H3>
<PRE>
public void <B>write</B>(int&nbsp;b)
           throws java.io.IOException</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/anotherbigidea/io/OutputStreamWrapper.html#write(int)">write</A></CODE> in class <CODE><A HREF="../../../com/anotherbigidea/io/OutputStreamWrapper.html" title="class in com.anotherbigidea.io">OutputStreamWrapper</A></CODE></DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE><DT><B>See Also:</B><DD><CODE>OutputStream.write(int)</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="close()"><!-- --></A><H3>
close</H3>
<PRE>
public void <B>close</B>()
           throws java.io.IOException</PRE>
<DL>
<DD>Override to ensure that bits are flushed
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>close</CODE> in interface <CODE>java.io.Closeable</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/anotherbigidea/io/OutputStreamWrapper.html#close()">close</A></CODE> in class <CODE><A HREF="../../../com/anotherbigidea/io/OutputStreamWrapper.html" title="class in com.anotherbigidea.io">OutputStreamWrapper</A></CODE></DL>
</DD>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE><DT><B>See Also:</B><DD><CODE>OutputStream.close()</CODE></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <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/OutStream.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-all.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>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/anotherbigidea/io/OutputStreamWrapper.html" title="class in com.anotherbigidea.io"><B>PREV CLASS</B></A>&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?com/anotherbigidea/io/OutStream.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="OutStream.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_com.anotherbigidea.io.CountingOutputStream">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>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
<i>Copyright &#169; 2000-2005 David N Main. All Rights Reserved.</i>
</BODY>
</HTML>

⌨️ 快捷键说明

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