outstream.html

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

HTML
969
字号
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a float value</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/anotherbigidea/io/OutStream.html#writeSBits(int, int)">writeSBits</A></B>(int&nbsp;numBits,
           int&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a signed value to the output stream in the given number of bits.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/anotherbigidea/io/OutStream.html#writeSI16(short)">writeSI16</A></B>(short&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a 16 bit signed value to the out stream</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/anotherbigidea/io/OutStream.html#writeSI32(int)">writeSI32</A></B>(int&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a 32 bit signed value</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/anotherbigidea/io/OutStream.html#writeString(byte[])">writeString</A></B>(byte[]&nbsp;string)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a string to the output stream and add terminating null</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/anotherbigidea/io/OutStream.html#writeString(java.lang.String, java.lang.String)">writeString</A></B>(java.lang.String&nbsp;s,
            java.lang.String&nbsp;encoding)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a string to the output stream using the default encoding and add terminating null</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/anotherbigidea/io/OutStream.html#writeUBits(int, long)">writeUBits</A></B>(int&nbsp;numBits,
           long&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write an unsigned value to the output stream in the given number of bits</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/anotherbigidea/io/OutStream.html#writeUI16(int)">writeUI16</A></B>(int&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a 16 bit unsigned value to the out stream</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/anotherbigidea/io/OutStream.html#writeUI32(long)">writeUI32</A></B>(long&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a 32 bit unsigned value to the out stream</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/anotherbigidea/io/OutStream.html#writeUI8(int)">writeUI8</A></B>(int&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write an 8 bit unsigned value to the out stream</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.anotherbigidea.io.OutputStreamWrapper"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.anotherbigidea.io.<A HREF="../../../com/anotherbigidea/io/OutputStreamWrapper.html" title="class in com.anotherbigidea.io">OutputStreamWrapper</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../com/anotherbigidea/io/OutputStreamWrapper.html#getOutputStream()">getOutputStream</A>, <A HREF="../../../com/anotherbigidea/io/OutputStreamWrapper.html#setOutputStream(java.io.OutputStream)">setOutputStream</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.anotherbigidea.io.CountingOutputStream"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.anotherbigidea.io.<A HREF="../../../com/anotherbigidea/io/CountingOutputStream.html" title="class in com.anotherbigidea.io">CountingOutputStream</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../com/anotherbigidea/io/CountingOutputStream.html#getCount()">getCount</A>, <A HREF="../../../com/anotherbigidea/io/CountingOutputStream.html#setCount(int)">setCount</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="OutStream(java.io.OutputStream)"><!-- --></A><H3>
OutStream</H3>
<PRE>
public <B>OutStream</B>(java.io.OutputStream&nbsp;out)</PRE>
<DL>
</DL>
<HR>

<A NAME="OutStream()"><!-- --></A><H3>
OutStream</H3>
<PRE>
protected <B>OutStream</B>()</PRE>
<DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="writeSBits(int, int)"><!-- --></A><H3>
writeSBits</H3>
<PRE>
public void <B>writeSBits</B>(int&nbsp;numBits,
                       int&nbsp;value)
                throws java.io.IOException</PRE>
<DL>
<DD>Write a signed value to the output stream in the given number of bits. The value must actually fit in that number of bits or it will be garbled
<P>
<DD><DL>

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

<A NAME="flush()"><!-- --></A><H3>
flush</H3>
<PRE>
public void <B>flush</B>()
           throws java.io.IOException</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>flush</CODE> in interface <CODE>java.io.Flushable</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/anotherbigidea/io/OutputStreamWrapper.html#flush()">flush</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.flush()</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeCompressed()"><!-- --></A><H3>
writeCompressed</H3>
<PRE>
public void <B>writeCompressed</B>()</PRE>
<DL>
<DD>Compress all subsequent data
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="flushBits()"><!-- --></A><H3>
flushBits</H3>
<PRE>
public void <B>flushBits</B>()
               throws java.io.IOException</PRE>
<DL>
<DD>Flush the bit buffer to the output stream and reset values
<P>
<DD><DL>

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

<A NAME="writeUBits(int, long)"><!-- --></A><H3>
writeUBits</H3>
<PRE>
public void <B>writeUBits</B>(int&nbsp;numBits,
                       long&nbsp;value)
                throws java.io.IOException</PRE>
<DL>
<DD>Write an unsigned value to the output stream in the given number of bits
<P>
<DD><DL>

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

<A NAME="getBit(int, long)"><!-- --></A><H3>
getBit</H3>
<PRE>
public static boolean <B>getBit</B>(int&nbsp;bitNum,
                             long&nbsp;value)</PRE>
<DL>
<DD>Get the given bit (where lowest bit is numbered 1)
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setBit(int, int)"><!-- --></A><H3>
setBit</H3>
<PRE>
public static int <B>setBit</B>(int&nbsp;bitNum,
                         int&nbsp;value)</PRE>
<DL>
<DD>Set the given bit (where lowest bit is numbered 1)
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="write(byte[])"><!-- --></A><H3>
write</H3>
<PRE>
public void <B>write</B>(byte[]&nbsp;bytes)
           throws java.io.IOException</PRE>
<DL>
<DD>Write the given bytes to the output stream
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/anotherbigidea/io/OutputStreamWrapper.html#write(byte[])">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(byte[])</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="write(byte[], int, int)"><!-- --></A><H3>
write</H3>
<PRE>
public void <B>write</B>(byte[]&nbsp;bytes,
                  int&nbsp;start,
                  int&nbsp;length)
           throws java.io.IOException</PRE>
<DL>
<DD>Write the given bytes to the output stream
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/anotherbigidea/io/OutputStreamWrapper.html#write(byte[], int, 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(byte[], int, int)</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeUI8(int)"><!-- --></A><H3>
writeUI8</H3>
<PRE>
public void <B>writeUI8</B>(int&nbsp;value)
              throws java.io.IOException</PRE>
<DL>
<DD>Write an 8 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="writeUI16(int)"><!-- --></A><H3>
writeUI16</H3>
<PRE>
public void <B>writeUI16</B>(int&nbsp;value)
               throws java.io.IOException</PRE>
<DL>
<DD>Write a 16 bit unsigned value to the out stream
<P>
<DD><DL>

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

⌨️ 快捷键说明

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