Sophie

Sophie

distrib > Fedora > 17 > i386 > by-pkgid > 675c8c8167236dfcf8d66da674f931e8 > files > 872

erlang-doc-R15B-03.3.fc17.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0) on Thu Dec 06 18:47:27 CET 2012 -->
<TITLE>
OtpOutputStream (Java-Erlang Interface Library)
</TITLE>

<META NAME="keywords" CONTENT="com.ericsson.otp.erlang.OtpOutputStream class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="OtpOutputStream (Java-Erlang Interface Library)";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" 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_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../com/ericsson/otp/erlang/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</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/ericsson/otp/erlang/OtpNodeStatus.html" title="class in com.ericsson.otp.erlang"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/ericsson/otp/erlang/OtpPeer.html" title="class in com.ericsson.otp.erlang"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/ericsson/otp/erlang/OtpOutputStream.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="OtpOutputStream.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="#field_summary">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;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<A NAME="main"></A>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.ericsson.otp.erlang</FONT>
<BR>
Class OtpOutputStream</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">java.io.OutputStream
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">java.io.ByteArrayOutputStream
          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.ericsson.otp.erlang.OtpOutputStream</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD>java.io.Closeable, java.io.Flushable</DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>OtpOutputStream</B><DT>extends java.io.ByteArrayOutputStream</DL>
</PRE>

<P>
Provides a stream for encoding Erlang terms to external format, for
 transmission or storage.
 
 <p>
 Note that this class is not synchronized, if you need synchronization you
 must provide it yourself.
<P>

<P>
<HR>

<P>
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpOutputStream.html#defaultIncrement">defaultIncrement</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The default increment used when growing the stream (increment at least this much).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpOutputStream.html#defaultInitialSize">defaultInitialSize</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The default initial size of the stream.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_java.io.ByteArrayOutputStream"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class java.io.ByteArrayOutputStream</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>buf, count</CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpOutputStream.html#OtpOutputStream()">OtpOutputStream</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a stream with the default initial size (2048 bytes).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpOutputStream.html#OtpOutputStream(int)">OtpOutputStream</A></B>(int&nbsp;size)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a stream with the specified initial size.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/ericsson/otp/erlang/OtpOutputStream.html#OtpOutputStream(com.ericsson.otp.erlang.OtpErlangObject)">OtpOutputStream</A></B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A>&nbsp;o)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a stream containing the encoded version of the given Erlang term.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</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/ericsson/otp/erlang/OtpOutputStream.html#count()">count</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of Jinterface 1.4, replaced by super.size().</I></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/ericsson/otp/erlang/OtpOutputStream.html#ensureCapacity(int)">ensureCapacity</A></B>(int&nbsp;minCapacity)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Increases the capacity of this <tt>OtpOutputStream</tt> instance, if
 necessary, to ensure that it can hold at least the number of elements
 specified by the minimum capacity argument.</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/ericsson/otp/erlang/OtpOutputStream.html#getPos()">getPos</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current position in the stream.</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/ericsson/otp/erlang/OtpOutputStream.html#length()">length</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current capacity of the 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/ericsson/otp/erlang/OtpOutputStream.html#poke4BE(int, long)">poke4BE</A></B>(int&nbsp;offset,
        long&nbsp;n)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write the low four bytes of a value to the stream in bif endian order, at
 the specified position.</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/ericsson/otp/erlang/OtpOutputStream.html#trimToSize()">trimToSize</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Trims the capacity of this <tt>OtpOutputStream</tt> instance to be the
 buffer's current size.</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/ericsson/otp/erlang/OtpOutputStream.html#write_any(com.ericsson.otp.erlang.OtpErlangObject)">write_any</A></B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A>&nbsp;o)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write an arbitrary Erlang term to the 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/ericsson/otp/erlang/OtpOutputStream.html#write_atom(java.lang.String)">write_atom</A></B>(java.lang.String&nbsp;atom)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a string to the stream as an Erlang atom.</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/ericsson/otp/erlang/OtpOutputStream.html#write_big_integer(java.math.BigInteger)">write_big_integer</A></B>(java.math.BigInteger&nbsp;v)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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/ericsson/otp/erlang/OtpOutputStream.html#write_binary(byte[])">write_binary</A></B>(byte[]&nbsp;bin)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write an array of bytes to the stream as an Erlang binary.</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/ericsson/otp/erlang/OtpOutputStream.html#write_bitstr(byte[], int)">write_bitstr</A></B>(byte[]&nbsp;bin,
             int&nbsp;pad_bits)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write an array of bytes to the stream as an Erlang bitstr.</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/ericsson/otp/erlang/OtpOutputStream.html#write_boolean(boolean)">write_boolean</A></B>(boolean&nbsp;b)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a boolean value to the stream as the Erlang atom 'true' or 'false'.</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/ericsson/otp/erlang/OtpOutputStream.html#write_byte(byte)">write_byte</A></B>(byte&nbsp;b)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a single byte to the stream as an Erlang integer.</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/ericsson/otp/erlang/OtpOutputStream.html#write_char(char)">write_char</A></B>(char&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a character to the stream as an Erlang integer.</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/ericsson/otp/erlang/OtpOutputStream.html#write_compressed(com.ericsson.otp.erlang.OtpErlangObject)">write_compressed</A></B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A>&nbsp;o)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write an arbitrary Erlang term to the stream in compressed format.</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/ericsson/otp/erlang/OtpOutputStream.html#write_double(double)">write_double</A></B>(double&nbsp;d)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a double value to the 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/ericsson/otp/erlang/OtpOutputStream.html#write_external_fun(java.lang.String, java.lang.String, int)">write_external_fun</A></B>(java.lang.String&nbsp;module,
                   java.lang.String&nbsp;function,
                   int&nbsp;arity)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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/ericsson/otp/erlang/OtpOutputStream.html#write_float(float)">write_float</A></B>(float&nbsp;f)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a float value to the 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/ericsson/otp/erlang/OtpOutputStream.html#write_fun(com.ericsson.otp.erlang.OtpErlangPid, java.lang.String, long, int, byte[], long, long, com.ericsson.otp.erlang.OtpErlangObject[])">write_fun</A></B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangPid.html" title="class in com.ericsson.otp.erlang">OtpErlangPid</A>&nbsp;pid,
          java.lang.String&nbsp;module,
          long&nbsp;old_index,
          int&nbsp;arity,
          byte[]&nbsp;md5,
          long&nbsp;index,
          long&nbsp;uniq,
          <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A>[]&nbsp;freeVars)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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/ericsson/otp/erlang/OtpOutputStream.html#write_int(int)">write_int</A></B>(int&nbsp;i)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write an integer to the 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/ericsson/otp/erlang/OtpOutputStream.html#write_list_head(int)">write_list_head</A></B>(int&nbsp;arity)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write an Erlang list header to the 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/ericsson/otp/erlang/OtpOutputStream.html#write_long(long)">write_long</A></B>(long&nbsp;l)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a long to the 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/ericsson/otp/erlang/OtpOutputStream.html#write_nil()">write_nil</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write an empty Erlang list to the 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/ericsson/otp/erlang/OtpOutputStream.html#write_pid(java.lang.String, int, int, int)">write_pid</A></B>(java.lang.String&nbsp;node,
          int&nbsp;id,
          int&nbsp;serial,
          int&nbsp;creation)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write an Erlang PID to the 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/ericsson/otp/erlang/OtpOutputStream.html#write_port(java.lang.String, int, int)">write_port</A></B>(java.lang.String&nbsp;node,
           int&nbsp;id,
           int&nbsp;creation)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write an Erlang port to the 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/ericsson/otp/erlang/OtpOutputStream.html#write_ref(java.lang.String, int[], int)">write_ref</A></B>(java.lang.String&nbsp;node,
          int[]&nbsp;ids,
          int&nbsp;creation)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a new style (R6 and later) Erlang ref to the 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/ericsson/otp/erlang/OtpOutputStream.html#write_ref(java.lang.String, int, int)">write_ref</A></B>(java.lang.String&nbsp;node,
          int&nbsp;id,
          int&nbsp;creation)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write an old style Erlang ref to the 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/ericsson/otp/erlang/OtpOutputStream.html#write_short(short)">write_short</A></B>(short&nbsp;s)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a short to the 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/ericsson/otp/erlang/OtpOutputStream.html#write_string(java.lang.String)">write_string</A></B>(java.lang.String&nbsp;s)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a string to the 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/ericsson/otp/erlang/OtpOutputStream.html#write_tuple_head(int)">write_tuple_head</A></B>(int&nbsp;arity)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write an Erlang tuple header to the 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/ericsson/otp/erlang/OtpOutputStream.html#write_uint(int)">write_uint</A></B>(int&nbsp;ui)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a positive integer to the 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/ericsson/otp/erlang/OtpOutputStream.html#write_ulong(long)">write_ulong</A></B>(long&nbsp;ul)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a positive long to the 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/ericsson/otp/erlang/OtpOutputStream.html#write_ushort(short)">write_ushort</A></B>(short&nbsp;us)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a positive short to the 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/ericsson/otp/erlang/OtpOutputStream.html#write(byte)">write</A></B>(byte&nbsp;b)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write one byte to the 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/ericsson/otp/erlang/OtpOutputStream.html#write(byte[])">write</A></B>(byte[]&nbsp;buf)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write an array of bytes to the 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/ericsson/otp/erlang/OtpOutputStream.html#write1(long)">write1</A></B>(long&nbsp;n)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write the low byte of a value to the 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/ericsson/otp/erlang/OtpOutputStream.html#write2BE(long)">write2BE</A></B>(long&nbsp;n)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write the low two bytes of a value to the stream in big endian order.</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/ericsson/otp/erlang/OtpOutputStream.html#write2LE(long)">write2LE</A></B>(long&nbsp;n)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write the low two bytes of a value to the stream in little endian order.</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/ericsson/otp/erlang/OtpOutputStream.html#write4BE(long)">write4BE</A></B>(long&nbsp;n)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write the low four bytes of a value to the stream in big endian order.</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/ericsson/otp/erlang/OtpOutputStream.html#write4LE(long)">write4LE</A></B>(long&nbsp;n)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write the low four bytes of a value to the stream in little endian order.</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/ericsson/otp/erlang/OtpOutputStream.html#write8BE(long)">write8BE</A></B>(long&nbsp;n)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write the low eight (all) bytes of a value to the stream in big endian
 order.</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/ericsson/otp/erlang/OtpOutputStream.html#write8LE(long)">write8LE</A></B>(long&nbsp;n)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write the low eight bytes of a value to the stream in little endian
 order.</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/ericsson/otp/erlang/OtpOutputStream.html#writeLE(long, int)">writeLE</A></B>(long&nbsp;n,
        int&nbsp;b)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write any number of bytes in little endian format.</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/ericsson/otp/erlang/OtpOutputStream.html#writeN(byte[])">writeN</A></B>(byte[]&nbsp;bytes)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write an array of bytes to the stream.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.io.ByteArrayOutputStream"><!-- --></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.io.ByteArrayOutputStream</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.io.OutputStream"><!-- --></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.io.OutputStream</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>flush</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, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_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>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="defaultInitialSize"><!-- --></A><H3>
defaultInitialSize</H3>
<PRE>
public static final int <B>defaultInitialSize</B></PRE>
<DL>
<DD>The default initial size of the stream. *
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.ericsson.otp.erlang.OtpOutputStream.defaultInitialSize">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="defaultIncrement"><!-- --></A><H3>
defaultIncrement</H3>
<PRE>
public static final int <B>defaultIncrement</B></PRE>
<DL>
<DD>The default increment used when growing the stream (increment at least this much). *
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.ericsson.otp.erlang.OtpOutputStream.defaultIncrement">Constant Field Values</A></DL>
</DL>

<!-- ========= 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="OtpOutputStream()"><!-- --></A><H3>
OtpOutputStream</H3>
<PRE>
public <B>OtpOutputStream</B>()</PRE>
<DL>
<DD>Create a stream with the default initial size (2048 bytes).
<P>
</DL>
<HR>

<A NAME="OtpOutputStream(int)"><!-- --></A><H3>
OtpOutputStream</H3>
<PRE>
public <B>OtpOutputStream</B>(int&nbsp;size)</PRE>
<DL>
<DD>Create a stream with the specified initial size.
<P>
</DL>
<HR>

<A NAME="OtpOutputStream(com.ericsson.otp.erlang.OtpErlangObject)"><!-- --></A><H3>
OtpOutputStream</H3>
<PRE>
public <B>OtpOutputStream</B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A>&nbsp;o)</PRE>
<DL>
<DD>Create a stream containing the encoded version of the given Erlang term.
<P>
</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="getPos()"><!-- --></A><H3>
getPos</H3>
<PRE>
public int <B>getPos</B>()</PRE>
<DL>
<DD>Get the current position in the stream.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the current position in the stream.</DL>
</DD>
</DL>
<HR>

<A NAME="trimToSize()"><!-- --></A><H3>
trimToSize</H3>
<PRE>
public void <B>trimToSize</B>()</PRE>
<DL>
<DD>Trims the capacity of this <tt>OtpOutputStream</tt> instance to be the
 buffer's current size.  An application can use this operation to minimize
 the storage of an <tt>OtpOutputStream</tt> instance.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="ensureCapacity(int)"><!-- --></A><H3>
ensureCapacity</H3>
<PRE>
public void <B>ensureCapacity</B>(int&nbsp;minCapacity)</PRE>
<DL>
<DD>Increases the capacity of this <tt>OtpOutputStream</tt> instance, if
 necessary, to ensure that it can hold at least the number of elements
 specified by the minimum capacity argument.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>minCapacity</CODE> - the desired minimum capacity</DL>
</DD>
</DL>
<HR>

<A NAME="write(byte)"><!-- --></A><H3>
write</H3>
<PRE>
public void <B>write</B>(byte&nbsp;b)</PRE>
<DL>
<DD>Write one byte to the stream.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>b</CODE> - the byte to write.</DL>
</DD>
</DL>
<HR>

<A NAME="write(byte[])"><!-- --></A><H3>
write</H3>
<PRE>
public void <B>write</B>(byte[]&nbsp;buf)</PRE>
<DL>
<DD>Write an array of bytes to the stream.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>write</CODE> in class <CODE>java.io.OutputStream</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>buf</CODE> - the array of bytes to write.</DL>
</DD>
</DL>
<HR>

<A NAME="write1(long)"><!-- --></A><H3>
write1</H3>
<PRE>
public void <B>write1</B>(long&nbsp;n)</PRE>
<DL>
<DD>Write the low byte of a value to the stream.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - the value to use.</DL>
</DD>
</DL>
<HR>

<A NAME="writeN(byte[])"><!-- --></A><H3>
writeN</H3>
<PRE>
public void <B>writeN</B>(byte[]&nbsp;bytes)</PRE>
<DL>
<DD>Write an array of bytes to the stream.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>buf</CODE> - the array of bytes to write.</DL>
</DD>
</DL>
<HR>

<A NAME="length()"><!-- --></A><H3>
length</H3>
<PRE>
public int <B>length</B>()</PRE>
<DL>
<DD>Get the current capacity of the stream. As bytes are added the capacity
 of the stream is increased automatically, however this method returns the
 current size.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the size of the internal buffer used by the stream.</DL>
</DD>
</DL>
<HR>

<A NAME="count()"><!-- --></A><H3>
count</H3>
<PRE>
<FONT SIZE="-1">@Deprecated
</FONT>public int <B>count</B>()</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>As of Jinterface 1.4, replaced by super.size().</I>
<P>
<DD>Get the number of bytes in the stream.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the number of bytes in the stream.<DT><B>See Also:</B><DD><CODE>ByteArrayOutputStream.size()</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="write2BE(long)"><!-- --></A><H3>
write2BE</H3>
<PRE>
public void <B>write2BE</B>(long&nbsp;n)</PRE>
<DL>
<DD>Write the low two bytes of a value to the stream in big endian order.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - the value to use.</DL>
</DD>
</DL>
<HR>

<A NAME="write4BE(long)"><!-- --></A><H3>
write4BE</H3>
<PRE>
public void <B>write4BE</B>(long&nbsp;n)</PRE>
<DL>
<DD>Write the low four bytes of a value to the stream in big endian order.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - the value to use.</DL>
</DD>
</DL>
<HR>

<A NAME="write8BE(long)"><!-- --></A><H3>
write8BE</H3>
<PRE>
public void <B>write8BE</B>(long&nbsp;n)</PRE>
<DL>
<DD>Write the low eight (all) bytes of a value to the stream in big endian
 order.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - the value to use.</DL>
</DD>
</DL>
<HR>

<A NAME="writeLE(long, int)"><!-- --></A><H3>
writeLE</H3>
<PRE>
public void <B>writeLE</B>(long&nbsp;n,
                    int&nbsp;b)</PRE>
<DL>
<DD>Write any number of bytes in little endian format.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - the value to use.<DD><CODE>b</CODE> - the number of bytes to write from the little end.</DL>
</DD>
</DL>
<HR>

<A NAME="write2LE(long)"><!-- --></A><H3>
write2LE</H3>
<PRE>
public void <B>write2LE</B>(long&nbsp;n)</PRE>
<DL>
<DD>Write the low two bytes of a value to the stream in little endian order.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - the value to use.</DL>
</DD>
</DL>
<HR>

<A NAME="write4LE(long)"><!-- --></A><H3>
write4LE</H3>
<PRE>
public void <B>write4LE</B>(long&nbsp;n)</PRE>
<DL>
<DD>Write the low four bytes of a value to the stream in little endian order.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - the value to use.</DL>
</DD>
</DL>
<HR>

<A NAME="write8LE(long)"><!-- --></A><H3>
write8LE</H3>
<PRE>
public void <B>write8LE</B>(long&nbsp;n)</PRE>
<DL>
<DD>Write the low eight bytes of a value to the stream in little endian
 order.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - the value to use.</DL>
</DD>
</DL>
<HR>

<A NAME="poke4BE(int, long)"><!-- --></A><H3>
poke4BE</H3>
<PRE>
public void <B>poke4BE</B>(int&nbsp;offset,
                    long&nbsp;n)</PRE>
<DL>
<DD>Write the low four bytes of a value to the stream in bif endian order, at
 the specified position. If the position specified is beyond the end of
 the stream, this method will have no effect.
 
 Normally this method should be used in conjunction with <CODE>size()</CODE>, when is is necessary to insert data into the stream before it is
 known what the actual value should be. For example:
 
 <pre>
 int pos = s.size();
    s.write4BE(0); // make space for length data,
                   // but final value is not yet known
     [ ...more write statements...]
    // later... when we know the length value
    s.poke4BE(pos, length);
 </pre>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>offset</CODE> - the position in the stream.<DD><CODE>n</CODE> - the value to use.</DL>
</DD>
</DL>
<HR>

<A NAME="write_atom(java.lang.String)"><!-- --></A><H3>
write_atom</H3>
<PRE>
public void <B>write_atom</B>(java.lang.String&nbsp;atom)</PRE>
<DL>
<DD>Write a string to the stream as an Erlang atom.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>atom</CODE> - the string to write.</DL>
</DD>
</DL>
<HR>

<A NAME="write_binary(byte[])"><!-- --></A><H3>
write_binary</H3>
<PRE>
public void <B>write_binary</B>(byte[]&nbsp;bin)</PRE>
<DL>
<DD>Write an array of bytes to the stream as an Erlang binary.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>bin</CODE> - the array of bytes to write.</DL>
</DD>
</DL>
<HR>

<A NAME="write_bitstr(byte[], int)"><!-- --></A><H3>
write_bitstr</H3>
<PRE>
public void <B>write_bitstr</B>(byte[]&nbsp;bin,
                         int&nbsp;pad_bits)</PRE>
<DL>
<DD>Write an array of bytes to the stream as an Erlang bitstr.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>bin</CODE> - the array of bytes to write.<DD><CODE>pad_bits</CODE> - the number of zero pad bits at the low end of the last byte</DL>
</DD>
</DL>
<HR>

<A NAME="write_boolean(boolean)"><!-- --></A><H3>
write_boolean</H3>
<PRE>
public void <B>write_boolean</B>(boolean&nbsp;b)</PRE>
<DL>
<DD>Write a boolean value to the stream as the Erlang atom 'true' or 'false'.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>b</CODE> - the boolean value to write.</DL>
</DD>
</DL>
<HR>

<A NAME="write_byte(byte)"><!-- --></A><H3>
write_byte</H3>
<PRE>
public void <B>write_byte</B>(byte&nbsp;b)</PRE>
<DL>
<DD>Write a single byte to the stream as an Erlang integer. The byte is
 really an IDL 'octet', that is, unsigned.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>b</CODE> - the byte to use.</DL>
</DD>
</DL>
<HR>

<A NAME="write_char(char)"><!-- --></A><H3>
write_char</H3>
<PRE>
public void <B>write_char</B>(char&nbsp;c)</PRE>
<DL>
<DD>Write a character to the stream as an Erlang integer. The character may
 be a 16 bit character, kind of IDL 'wchar'. It is up to the Erlang side
 to take care of souch, if they should be used.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - the character to use.</DL>
</DD>
</DL>
<HR>

<A NAME="write_double(double)"><!-- --></A><H3>
write_double</H3>
<PRE>
public void <B>write_double</B>(double&nbsp;d)</PRE>
<DL>
<DD>Write a double value to the stream.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>d</CODE> - the double to use.</DL>
</DD>
</DL>
<HR>

<A NAME="write_float(float)"><!-- --></A><H3>
write_float</H3>
<PRE>
public void <B>write_float</B>(float&nbsp;f)</PRE>
<DL>
<DD>Write a float value to the stream.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>f</CODE> - the float to use.</DL>
</DD>
</DL>
<HR>

<A NAME="write_big_integer(java.math.BigInteger)"><!-- --></A><H3>
write_big_integer</H3>
<PRE>
public void <B>write_big_integer</B>(java.math.BigInteger&nbsp;v)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="write_long(long)"><!-- --></A><H3>
write_long</H3>
<PRE>
public void <B>write_long</B>(long&nbsp;l)</PRE>
<DL>
<DD>Write a long to the stream.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>l</CODE> - the long to use.</DL>
</DD>
</DL>
<HR>

<A NAME="write_ulong(long)"><!-- --></A><H3>
write_ulong</H3>
<PRE>
public void <B>write_ulong</B>(long&nbsp;ul)</PRE>
<DL>
<DD>Write a positive long to the stream. The long is interpreted as a two's
 complement unsigned long even if it is negative.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ul</CODE> - the long to use.</DL>
</DD>
</DL>
<HR>

<A NAME="write_int(int)"><!-- --></A><H3>
write_int</H3>
<PRE>
public void <B>write_int</B>(int&nbsp;i)</PRE>
<DL>
<DD>Write an integer to the stream.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>i</CODE> - the integer to use.</DL>
</DD>
</DL>
<HR>

<A NAME="write_uint(int)"><!-- --></A><H3>
write_uint</H3>
<PRE>
public void <B>write_uint</B>(int&nbsp;ui)</PRE>
<DL>
<DD>Write a positive integer to the stream. The integer is interpreted as a
 two's complement unsigned integer even if it is negative.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ui</CODE> - the integer to use.</DL>
</DD>
</DL>
<HR>

<A NAME="write_short(short)"><!-- --></A><H3>
write_short</H3>
<PRE>
public void <B>write_short</B>(short&nbsp;s)</PRE>
<DL>
<DD>Write a short to the stream.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - the short to use.</DL>
</DD>
</DL>
<HR>

<A NAME="write_ushort(short)"><!-- --></A><H3>
write_ushort</H3>
<PRE>
public void <B>write_ushort</B>(short&nbsp;us)</PRE>
<DL>
<DD>Write a positive short to the stream. The short is interpreted as a two's
 complement unsigned short even if it is negative.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - the short to use.</DL>
</DD>
</DL>
<HR>

<A NAME="write_list_head(int)"><!-- --></A><H3>
write_list_head</H3>
<PRE>
public void <B>write_list_head</B>(int&nbsp;arity)</PRE>
<DL>
<DD>Write an Erlang list header to the stream. After calling this method, you
 must write 'arity' elements to the stream followed by nil, or it will not
 be possible to decode it later.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>arity</CODE> - the number of elements in the list.</DL>
</DD>
</DL>
<HR>

<A NAME="write_nil()"><!-- --></A><H3>
write_nil</H3>
<PRE>
public void <B>write_nil</B>()</PRE>
<DL>
<DD>Write an empty Erlang list to the stream.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="write_tuple_head(int)"><!-- --></A><H3>
write_tuple_head</H3>
<PRE>
public void <B>write_tuple_head</B>(int&nbsp;arity)</PRE>
<DL>
<DD>Write an Erlang tuple header to the stream. After calling this method,
 you must write 'arity' elements to the stream or it will not be possible
 to decode it later.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>arity</CODE> - the number of elements in the tuple.</DL>
</DD>
</DL>
<HR>

<A NAME="write_pid(java.lang.String, int, int, int)"><!-- --></A><H3>
write_pid</H3>
<PRE>
public void <B>write_pid</B>(java.lang.String&nbsp;node,
                      int&nbsp;id,
                      int&nbsp;serial,
                      int&nbsp;creation)</PRE>
<DL>
<DD>Write an Erlang PID to the stream.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>node</CODE> - the nodename.<DD><CODE>id</CODE> - an arbitrary number. Only the low order 15 bits will be used.<DD><CODE>serial</CODE> - another arbitrary number. Only the low order 13 bits will be
            used.<DD><CODE>creation</CODE> - yet another arbitrary number. Only the low order 2 bits will
            be used.</DL>
</DD>
</DL>
<HR>

<A NAME="write_port(java.lang.String, int, int)"><!-- --></A><H3>
write_port</H3>
<PRE>
public void <B>write_port</B>(java.lang.String&nbsp;node,
                       int&nbsp;id,
                       int&nbsp;creation)</PRE>
<DL>
<DD>Write an Erlang port to the stream.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>node</CODE> - the nodename.<DD><CODE>id</CODE> - an arbitrary number. Only the low order 28 bits will be used.<DD><CODE>creation</CODE> - another arbitrary number. Only the low order 2 bits will be
            used.</DL>
</DD>
</DL>
<HR>

<A NAME="write_ref(java.lang.String, int, int)"><!-- --></A><H3>
write_ref</H3>
<PRE>
public void <B>write_ref</B>(java.lang.String&nbsp;node,
                      int&nbsp;id,
                      int&nbsp;creation)</PRE>
<DL>
<DD>Write an old style Erlang ref to the stream.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>node</CODE> - the nodename.<DD><CODE>id</CODE> - an arbitrary number. Only the low order 18 bits will be used.<DD><CODE>creation</CODE> - another arbitrary number. Only the low order 2 bits will be
            used.</DL>
</DD>
</DL>
<HR>

<A NAME="write_ref(java.lang.String, int[], int)"><!-- --></A><H3>
write_ref</H3>
<PRE>
public void <B>write_ref</B>(java.lang.String&nbsp;node,
                      int[]&nbsp;ids,
                      int&nbsp;creation)</PRE>
<DL>
<DD>Write a new style (R6 and later) Erlang ref to the stream.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>node</CODE> - the nodename.<DD><CODE>ids</CODE> - an array of arbitrary numbers. Only the low order 18 bits of
            the first number will be used. If the array contains only one
            number, an old style ref will be written instead. At most
            three numbers will be read from the array.<DD><CODE>creation</CODE> - another arbitrary number. Only the low order 2 bits will be
            used.</DL>
</DD>
</DL>
<HR>

<A NAME="write_string(java.lang.String)"><!-- --></A><H3>
write_string</H3>
<PRE>
public void <B>write_string</B>(java.lang.String&nbsp;s)</PRE>
<DL>
<DD>Write a string to the stream.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - the string to write.</DL>
</DD>
</DL>
<HR>

<A NAME="write_compressed(com.ericsson.otp.erlang.OtpErlangObject)"><!-- --></A><H3>
write_compressed</H3>
<PRE>
public void <B>write_compressed</B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A>&nbsp;o)</PRE>
<DL>
<DD>Write an arbitrary Erlang term to the stream in compressed format.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>o</CODE> - the Erlang tem to write.</DL>
</DD>
</DL>
<HR>

<A NAME="write_any(com.ericsson.otp.erlang.OtpErlangObject)"><!-- --></A><H3>
write_any</H3>
<PRE>
public void <B>write_any</B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A>&nbsp;o)</PRE>
<DL>
<DD>Write an arbitrary Erlang term to the stream.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>o</CODE> - the Erlang term to write.</DL>
</DD>
</DL>
<HR>

<A NAME="write_fun(com.ericsson.otp.erlang.OtpErlangPid, java.lang.String, long, int, byte[], long, long, com.ericsson.otp.erlang.OtpErlangObject[])"><!-- --></A><H3>
write_fun</H3>
<PRE>
public void <B>write_fun</B>(<A HREF="../../../../com/ericsson/otp/erlang/OtpErlangPid.html" title="class in com.ericsson.otp.erlang">OtpErlangPid</A>&nbsp;pid,
                      java.lang.String&nbsp;module,
                      long&nbsp;old_index,
                      int&nbsp;arity,
                      byte[]&nbsp;md5,
                      long&nbsp;index,
                      long&nbsp;uniq,
                      <A HREF="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</A>[]&nbsp;freeVars)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="write_external_fun(java.lang.String, java.lang.String, int)"><!-- --></A><H3>
write_external_fun</H3>
<PRE>
public void <B>write_external_fun</B>(java.lang.String&nbsp;module,
                               java.lang.String&nbsp;function,
                               int&nbsp;arity)</PRE>
<DL>
<DD><DL>
</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="../../../../com/ericsson/otp/erlang/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</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/ericsson/otp/erlang/OtpNodeStatus.html" title="class in com.ericsson.otp.erlang"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/ericsson/otp/erlang/OtpPeer.html" title="class in com.ericsson.otp.erlang"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/ericsson/otp/erlang/OtpOutputStream.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="OtpOutputStream.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="#field_summary">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;<A HREF="#field_detail">FIELD</A>&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>

</BODY>
</HTML>