# CSJ2K.j2k.io.BEBufferedRandomAccessFile.readUnsignedShort

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_io_BEBufferedRandomAccessFile_readUnsignedShort_" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readUnsignedShort*">readUnsignedShort Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_io_BEBufferedRandomAccessFile_readUnsignedShort_" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readUnsignedShort*"></a>
<h4 id="CSJ2K_j2k_io_BEBufferedRandomAccessFile_readUnsignedShort" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readUnsignedShort">readUnsignedShort()</h4>
<div class="markdown level1 summary"><p>Reads an unsigned short (i.e., 16 bit) from the input. It is returned
as an <tt>int</tt> since Java does not have an unsigned short
type. Prior to reading, the input should be realigned at the byte
level.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override int readUnsignedShort()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function readUnsignedShort() As Integer</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The next byte-aligned unsigned short (16 bit) from the input,
as an <tt>int</tt>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="CSJ2K.j2k.io.BufferedRandomAccessFile.readUnsignedShort.html#CSJ2K_j2k_io_BufferedRandomAccessFile_readUnsignedShort">BufferedRandomAccessFile.readUnsignedShort()</a></div>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="CSJ2K.j2k.io.BinaryDataInput.readUnsignedShort.html#CSJ2K_j2k_io_BinaryDataInput_readUnsignedShort">BinaryDataInput.readUnsignedShort()</a></div>
</div>
