Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-updates > by-pkgid > eb1ec8bb814fe4d749258d46ae8ea988 > files > 839

erlang-doc-18.3.2-9.1.mga6.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Mon Jan 01 16:42:57 GMT 2018 -->
<title>OtpInputStream (Java-Erlang Interface Library)</title>
<meta name="date" content="2018-01-01">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="OtpInputStream (Java-Erlang Interface Library)";
        }
    }
    catch(err) {
    }
//-->
var methods = {"i0":9,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../com/ericsson/otp/erlang/package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/ericsson/otp/erlang/OtpExternal.html" title="class in com.ericsson.otp.erlang"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../com/ericsson/otp/erlang/OtpLocalNode.html" title="class in com.ericsson.otp.erlang"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/ericsson/otp/erlang/OtpInputStream.html" target="_top">Frames</a></li>
<li><a href="OtpInputStream.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.ericsson.otp.erlang</div>
<h2 title="Class OtpInputStream" class="title">Class OtpInputStream</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>java.io.InputStream</li>
<li>
<ul class="inheritance">
<li>java.io.ByteArrayInputStream</li>
<li>
<ul class="inheritance">
<li>com.ericsson.otp.erlang.OtpInputStream</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.io.Closeable, java.lang.AutoCloseable</dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">OtpInputStream</span>
extends java.io.ByteArrayInputStream</pre>
<div class="block">Provides a stream for decoding Erlang terms from external format.

 <p>
 Note that this class is not synchronized, if you need synchronization you
 must provide it yourself.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#DECODE_INT_LISTS_AS_STRINGS">DECODE_INT_LISTS_AS_STRINGS</a></span></code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.java.io.ByteArrayInputStream">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;java.io.ByteArrayInputStream</h3>
<code>buf, count, mark, pos</code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#OtpInputStream-byte:A-">OtpInputStream</a></span>(byte[]&nbsp;buf)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#OtpInputStream-byte:A-int-">OtpInputStream</a></span>(byte[]&nbsp;buf,
              int&nbsp;flags)</code>
<div class="block">Create a stream from a buffer containing encoded Erlang terms.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#OtpInputStream-byte:A-int-int-int-">OtpInputStream</a></span>(byte[]&nbsp;buf,
              int&nbsp;offset,
              int&nbsp;length,
              int&nbsp;flags)</code>
<div class="block">Create a stream from a buffer containing encoded Erlang terms at the
 given offset and length.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#byte_array_to_long-byte:A-boolean-">byte_array_to_long</a></span>(byte[]&nbsp;b,
                  boolean&nbsp;unsigned)</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#getPos--">getPos</a></span>()</code>
<div class="block">Get the current position in the stream.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#peek--">peek</a></span>()</code>
<div class="block">Alias for peek1()</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#peek1--">peek1</a></span>()</code>
<div class="block">Look ahead one position in the stream without consuming the byte found
 there.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#peek1skip_version--">peek1skip_version</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_any--">read_any</a></span>()</code>
<div class="block">Read an arbitrary Erlang term from the stream.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_atom--">read_atom</a></span>()</code>
<div class="block">Read an Erlang atom from the stream.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_binary--">read_binary</a></span>()</code>
<div class="block">Read an Erlang binary from the stream.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_bitstr-int:A-">read_bitstr</a></span>(int[]&nbsp;pad_bits)</code>
<div class="block">Read an Erlang bitstr from the stream.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_boolean--">read_boolean</a></span>()</code>
<div class="block">Read an Erlang atom from the stream and interpret the value as a boolean.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_byte--">read_byte</a></span>()</code>
<div class="block">Read one byte from the stream.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>char</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_char--">read_char</a></span>()</code>
<div class="block">Read a character from the stream.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_compressed--">read_compressed</a></span>()</code>
<div class="block">Read a compressed term from the stream</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_double--">read_double</a></span>()</code>
<div class="block">Read an Erlang float from the stream.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangExternalFun.html" title="class in com.ericsson.otp.erlang">OtpErlangExternalFun</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_external_fun--">read_external_fun</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_float--">read_float</a></span>()</code>
<div class="block">Read an Erlang float from the stream.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangFun.html" title="class in com.ericsson.otp.erlang">OtpErlangFun</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_fun--">read_fun</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_int--">read_int</a></span>()</code>
<div class="block">Read an integer from the stream.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_integer_byte_array--">read_integer_byte_array</a></span>()</code>
<div class="block">Read an integer from the stream.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_list_head--">read_list_head</a></span>()</code>
<div class="block">Read a list header from the stream.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_long--">read_long</a></span>()</code>
<div class="block">Read a long from the stream.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_long-boolean-">read_long</a></span>(boolean&nbsp;unsigned)</code>&nbsp;</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_map_head--">read_map_head</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_nil--">read_nil</a></span>()</code>
<div class="block">Read an empty list from the stream.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangPid.html" title="class in com.ericsson.otp.erlang">OtpErlangPid</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_pid--">read_pid</a></span>()</code>
<div class="block">Read an Erlang PID from the stream.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangPort.html" title="class in com.ericsson.otp.erlang">OtpErlangPort</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_port--">read_port</a></span>()</code>
<div class="block">Read an Erlang port from the stream.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangRef.html" title="class in com.ericsson.otp.erlang">OtpErlangRef</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_ref--">read_ref</a></span>()</code>
<div class="block">Read an Erlang reference from the stream.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_short--">read_short</a></span>()</code>
<div class="block">Read a short from the stream.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_string--">read_string</a></span>()</code>
<div class="block">Read a string from the stream.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_tuple_head--">read_tuple_head</a></span>()</code>
<div class="block">Read a tuple header from the stream.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_uint--">read_uint</a></span>()</code>
<div class="block">Read an unsigned integer from the stream.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_ulong--">read_ulong</a></span>()</code>
<div class="block">Read an unsigned long from the stream.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read_ushort--">read_ushort</a></span>()</code>
<div class="block">Read an unsigned short from the stream.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read1--">read1</a></span>()</code>
<div class="block">Read a one byte integer from the stream.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read1skip_version--">read1skip_version</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read2BE--">read2BE</a></span>()</code>
<div class="block">Read a two byte big endian integer from the stream.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read2LE--">read2LE</a></span>()</code>
<div class="block">Read a two byte little endian integer from the stream.</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read4BE--">read4BE</a></span>()</code>
<div class="block">Read a four byte big endian integer from the stream.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#read4LE--">read4LE</a></span>()</code>
<div class="block">Read a four byte little endian integer from the stream.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#readBE-int-">readBE</a></span>(int&nbsp;n)</code>
<div class="block">Read a bigendian integer from the stream.</div>
</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#readLE-int-">readLE</a></span>(int&nbsp;n)</code>
<div class="block">Read a little endian integer from the stream.</div>
</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#readN-byte:A-">readN</a></span>(byte[]&nbsp;abuf)</code>
<div class="block">Read an array of bytes from the stream.</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#readN-byte:A-int-int-">readN</a></span>(byte[]&nbsp;abuf,
     int&nbsp;off,
     int&nbsp;len)</code>
<div class="block">Read an array of bytes from the stream.</div>
</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/ericsson/otp/erlang/OtpInputStream.html#setPos-int-">setPos</a></span>(int&nbsp;pos)</code>
<div class="block">Set the current position in the stream.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.io.ByteArrayInputStream">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.io.ByteArrayInputStream</h3>
<code>available, close, mark, markSupported, read, read, reset, skip</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.io.InputStream">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.io.InputStream</h3>
<code>read</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="DECODE_INT_LISTS_AS_STRINGS">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DECODE_INT_LISTS_AS_STRINGS</h4>
<pre>public static&nbsp;int DECODE_INT_LISTS_AS_STRINGS</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="OtpInputStream-byte:A-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>OtpInputStream</h4>
<pre>public&nbsp;OtpInputStream(byte[]&nbsp;buf)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>buf</code> - </dd>
</dl>
</li>
</ul>
<a name="OtpInputStream-byte:A-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>OtpInputStream</h4>
<pre>public&nbsp;OtpInputStream(byte[]&nbsp;buf,
                      int&nbsp;flags)</pre>
<div class="block">Create a stream from a buffer containing encoded Erlang terms.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>flags</code> - </dd>
</dl>
</li>
</ul>
<a name="OtpInputStream-byte:A-int-int-int-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>OtpInputStream</h4>
<pre>public&nbsp;OtpInputStream(byte[]&nbsp;buf,
                      int&nbsp;offset,
                      int&nbsp;length,
                      int&nbsp;flags)</pre>
<div class="block">Create a stream from a buffer containing encoded Erlang terms at the
 given offset and length.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>flags</code> - </dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="getPos--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPos</h4>
<pre>public&nbsp;int&nbsp;getPos()</pre>
<div class="block">Get the current position in the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the current position in the stream.</dd>
</dl>
</li>
</ul>
<a name="setPos-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPos</h4>
<pre>public&nbsp;int&nbsp;setPos(int&nbsp;pos)</pre>
<div class="block">Set the current position in the stream.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pos</code> - the position to move to in the stream. If pos indicates a
            position beyond the end of the stream, the position is move to
            the end of the stream instead. If pos is negative, the
            position is moved to the beginning of the stream instead.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the previous position in the stream.</dd>
</dl>
</li>
</ul>
<a name="readN-byte:A-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readN</h4>
<pre>public&nbsp;int&nbsp;readN(byte[]&nbsp;abuf)
          throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an array of bytes from the stream. The method reads at most
 buf.length bytes from the input stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the number of bytes read.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next byte cannot be read.</dd>
</dl>
</li>
</ul>
<a name="readN-byte:A-int-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readN</h4>
<pre>public&nbsp;int&nbsp;readN(byte[]&nbsp;abuf,
                 int&nbsp;off,
                 int&nbsp;len)
          throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an array of bytes from the stream. The method reads at most len
 bytes from the input stream into offset off of the buffer.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the number of bytes read.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next byte cannot be read.</dd>
</dl>
</li>
</ul>
<a name="peek--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>peek</h4>
<pre>public&nbsp;int&nbsp;peek()
         throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Alias for peek1()</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code></dd>
</dl>
</li>
</ul>
<a name="peek1--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>peek1</h4>
<pre>public&nbsp;int&nbsp;peek1()
          throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Look ahead one position in the stream without consuming the byte found
 there.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the next byte in the stream, as an integer.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next byte cannot be read.</dd>
</dl>
</li>
</ul>
<a name="peek1skip_version--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>peek1skip_version</h4>
<pre>public&nbsp;int&nbsp;peek1skip_version()
                      throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code></dd>
</dl>
</li>
</ul>
<a name="read1--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read1</h4>
<pre>public&nbsp;int&nbsp;read1()
          throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read a one byte integer from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the byte read, as an integer.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next byte cannot be read.</dd>
</dl>
</li>
</ul>
<a name="read1skip_version--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read1skip_version</h4>
<pre>public&nbsp;int&nbsp;read1skip_version()
                      throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code></dd>
</dl>
</li>
</ul>
<a name="read2BE--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read2BE</h4>
<pre>public&nbsp;int&nbsp;read2BE()
            throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read a two byte big endian integer from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the bytes read, converted from big endian to an integer.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next byte cannot be read.</dd>
</dl>
</li>
</ul>
<a name="read4BE--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read4BE</h4>
<pre>public&nbsp;int&nbsp;read4BE()
            throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read a four byte big endian integer from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the bytes read, converted from big endian to an integer.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next byte cannot be read.</dd>
</dl>
</li>
</ul>
<a name="read2LE--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read2LE</h4>
<pre>public&nbsp;int&nbsp;read2LE()
            throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read a two byte little endian integer from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the bytes read, converted from little endian to an integer.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next byte cannot be read.</dd>
</dl>
</li>
</ul>
<a name="read4LE--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read4LE</h4>
<pre>public&nbsp;int&nbsp;read4LE()
            throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read a four byte little endian integer from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the bytes read, converted from little endian to an integer.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next byte cannot be read.</dd>
</dl>
</li>
</ul>
<a name="readLE-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readLE</h4>
<pre>public&nbsp;long&nbsp;readLE(int&nbsp;n)
            throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read a little endian integer from the stream.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>n</code> - the number of bytes to read</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the bytes read, converted from little endian to an integer.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next byte cannot be read.</dd>
</dl>
</li>
</ul>
<a name="readBE-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readBE</h4>
<pre>public&nbsp;long&nbsp;readBE(int&nbsp;n)
            throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read a bigendian integer from the stream.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>n</code> - the number of bytes to read</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the bytes read, converted from big endian to an integer.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next byte cannot be read.</dd>
</dl>
</li>
</ul>
<a name="read_boolean--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_boolean</h4>
<pre>public&nbsp;boolean&nbsp;read_boolean()
                     throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an Erlang atom from the stream and interpret the value as a boolean.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the atom at the current position in the stream contains
         the value 'true' (ignoring case), false otherwise.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream is not an atom.</dd>
</dl>
</li>
</ul>
<a name="read_atom--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_atom</h4>
<pre>public&nbsp;java.lang.String&nbsp;read_atom()
                           throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an Erlang atom from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a String containing the value of the atom.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream is not an atom.</dd>
</dl>
</li>
</ul>
<a name="read_binary--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_binary</h4>
<pre>public&nbsp;byte[]&nbsp;read_binary()
                   throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an Erlang binary from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a byte array containing the value of the binary.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream is not a binary.</dd>
</dl>
</li>
</ul>
<a name="read_bitstr-int:A-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_bitstr</h4>
<pre>public&nbsp;byte[]&nbsp;read_bitstr(int[]&nbsp;pad_bits)
                   throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an Erlang bitstr from the stream.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pad_bits</code> - an int array whose first element will be set to the number of
            pad bits in the last byte.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a byte array containing the value of the bitstr.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream is not a bitstr.</dd>
</dl>
</li>
</ul>
<a name="read_float--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_float</h4>
<pre>public&nbsp;float&nbsp;read_float()
                 throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an Erlang float from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the float value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream is not a float.</dd>
</dl>
</li>
</ul>
<a name="read_double--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_double</h4>
<pre>public&nbsp;double&nbsp;read_double()
                   throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an Erlang float from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the float value, as a double.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream is not a float.</dd>
</dl>
</li>
</ul>
<a name="read_byte--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_byte</h4>
<pre>public&nbsp;byte&nbsp;read_byte()
               throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read one byte from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the byte read.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next byte cannot be read.</dd>
</dl>
</li>
</ul>
<a name="read_char--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_char</h4>
<pre>public&nbsp;char&nbsp;read_char()
               throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read a character from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the character value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream is not an integer that can
                be represented as a char.</dd>
</dl>
</li>
</ul>
<a name="read_uint--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_uint</h4>
<pre>public&nbsp;int&nbsp;read_uint()
              throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an unsigned integer from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the integer value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream can not be represented as a
                positive integer.</dd>
</dl>
</li>
</ul>
<a name="read_int--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_int</h4>
<pre>public&nbsp;int&nbsp;read_int()
             throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an integer from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the integer value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream can not be represented as
                an integer.</dd>
</dl>
</li>
</ul>
<a name="read_ushort--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_ushort</h4>
<pre>public&nbsp;short&nbsp;read_ushort()
                  throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an unsigned short from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the short value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream can not be represented as a
                positive short.</dd>
</dl>
</li>
</ul>
<a name="read_short--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_short</h4>
<pre>public&nbsp;short&nbsp;read_short()
                 throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read a short from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the short value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream can not be represented as a
                short.</dd>
</dl>
</li>
</ul>
<a name="read_ulong--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_ulong</h4>
<pre>public&nbsp;long&nbsp;read_ulong()
                throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an unsigned long from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the long value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream can not be represented as a
                positive long.</dd>
</dl>
</li>
</ul>
<a name="read_long--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_long</h4>
<pre>public&nbsp;long&nbsp;read_long()
               throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read a long from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the long value.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream can not be represented as a
                long.</dd>
</dl>
</li>
</ul>
<a name="read_long-boolean-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_long</h4>
<pre>public&nbsp;long&nbsp;read_long(boolean&nbsp;unsigned)
               throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code></dd>
</dl>
</li>
</ul>
<a name="read_integer_byte_array--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_integer_byte_array</h4>
<pre>public&nbsp;byte[]&nbsp;read_integer_byte_array()
                               throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an integer from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the value as a big endian 2's complement byte array.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream is not an integer.</dd>
</dl>
</li>
</ul>
<a name="byte_array_to_long-byte:A-boolean-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>byte_array_to_long</h4>
<pre>public static&nbsp;long&nbsp;byte_array_to_long(byte[]&nbsp;b,
                                      boolean&nbsp;unsigned)
                               throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code></dd>
</dl>
</li>
</ul>
<a name="read_list_head--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_list_head</h4>
<pre>public&nbsp;int&nbsp;read_list_head()
                   throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read a list header from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the arity of the list.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream is not a list.</dd>
</dl>
</li>
</ul>
<a name="read_tuple_head--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_tuple_head</h4>
<pre>public&nbsp;int&nbsp;read_tuple_head()
                    throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read a tuple header from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the arity of the tuple.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream is not a tuple.</dd>
</dl>
</li>
</ul>
<a name="read_nil--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_nil</h4>
<pre>public&nbsp;int&nbsp;read_nil()
             throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an empty list from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>zero (the arity of the list).</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream is not an empty list.</dd>
</dl>
</li>
</ul>
<a name="read_pid--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_pid</h4>
<pre>public&nbsp;<a href="../../../../com/ericsson/otp/erlang/OtpErlangPid.html" title="class in com.ericsson.otp.erlang">OtpErlangPid</a>&nbsp;read_pid()
                      throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an Erlang PID from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the value of the PID.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream is not an Erlang PID.</dd>
</dl>
</li>
</ul>
<a name="read_port--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_port</h4>
<pre>public&nbsp;<a href="../../../../com/ericsson/otp/erlang/OtpErlangPort.html" title="class in com.ericsson.otp.erlang">OtpErlangPort</a>&nbsp;read_port()
                        throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an Erlang port from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the value of the port.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream is not an Erlang port.</dd>
</dl>
</li>
</ul>
<a name="read_ref--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_ref</h4>
<pre>public&nbsp;<a href="../../../../com/ericsson/otp/erlang/OtpErlangRef.html" title="class in com.ericsson.otp.erlang">OtpErlangRef</a>&nbsp;read_ref()
                      throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an Erlang reference from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the value of the reference</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream is not an Erlang reference.</dd>
</dl>
</li>
</ul>
<a name="read_fun--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_fun</h4>
<pre>public&nbsp;<a href="../../../../com/ericsson/otp/erlang/OtpErlangFun.html" title="class in com.ericsson.otp.erlang">OtpErlangFun</a>&nbsp;read_fun()
                      throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code></dd>
</dl>
</li>
</ul>
<a name="read_external_fun--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_external_fun</h4>
<pre>public&nbsp;<a href="../../../../com/ericsson/otp/erlang/OtpErlangExternalFun.html" title="class in com.ericsson.otp.erlang">OtpErlangExternalFun</a>&nbsp;read_external_fun()
                                       throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code></dd>
</dl>
</li>
</ul>
<a name="read_string--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_string</h4>
<pre>public&nbsp;java.lang.String&nbsp;read_string()
                             throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read a string from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the value of the string.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream is not a string.</dd>
</dl>
</li>
</ul>
<a name="read_compressed--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_compressed</h4>
<pre>public&nbsp;<a href="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</a>&nbsp;read_compressed()
                                throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read a compressed term from the stream</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the resulting uncompressed term.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the next term in the stream is not a compressed term.</dd>
</dl>
</li>
</ul>
<a name="read_any--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read_any</h4>
<pre>public&nbsp;<a href="../../../../com/ericsson/otp/erlang/OtpErlangObject.html" title="class in com.ericsson.otp.erlang">OtpErlangObject</a>&nbsp;read_any()
                         throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<div class="block">Read an arbitrary Erlang term from the stream.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the Erlang term.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code> - if the stream does not contain a known Erlang type at the
                next position.</dd>
</dl>
</li>
</ul>
<a name="read_map_head--">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>read_map_head</h4>
<pre>public&nbsp;int&nbsp;read_map_head()
                  throws <a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/ericsson/otp/erlang/OtpErlangDecodeException.html" title="class in com.ericsson.otp.erlang">OtpErlangDecodeException</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../com/ericsson/otp/erlang/package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/ericsson/otp/erlang/OtpExternal.html" title="class in com.ericsson.otp.erlang"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../com/ericsson/otp/erlang/OtpLocalNode.html" title="class in com.ericsson.otp.erlang"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/ericsson/otp/erlang/OtpInputStream.html" target="_top">Frames</a></li>
<li><a href="OtpInputStream.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>