# CSJ2K.j2k.io.BinaryDataInput

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_j2k_io_BinaryDataInput" data-uid="CSJ2K.j2k.io.BinaryDataInput" class="text-break">BinaryDataInput Interface
</h1>
  <div class="markdown level0 summary"><p>This interface defines the input of binary data from streams and/or files.</p>
<pre><code>       &lt;p&gt;Byte level input (i.e., for byte, int, long, float, etc.) should always
       be byte aligned. For example, a request to read an &lt;tt&gt;int&lt;/tt&gt; should
       always realign the input at the byte level.&lt;/p&gt;&lt;p&gt;The implementation of this interface should clearly define if multi-byte
       input data is read in little- or big-endian byte ordering (least
       significant byte first or most significant byte first, respectively).&lt;/p&gt;
</code></pre>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.j2k.io.html">CSJ2K.j2k.io</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ReportViewer.4.6.2.dll</h6>
  <h5 id="CSJ2K_j2k_io_BinaryDataInput_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface BinaryDataInput</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface BinaryDataInput</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_io_BinaryDataInput_ByteOrdering" data-uid="CSJ2K.j2k.io.BinaryDataInput.ByteOrdering">
          <a class="xref" href="CSJ2K.j2k.io.BinaryDataInput.ByteOrdering.html#CSJ2K_j2k_io_BinaryDataInput_ByteOrdering">ByteOrdering</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the endianess (i.e., byte ordering) of the implementing
class. Note that an implementing class may implement only one type of
endianness or both, which would be decided at creatiuon time.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_io_BinaryDataInput_readByte" data-uid="CSJ2K.j2k.io.BinaryDataInput.readByte">
          <a class="xref" href="CSJ2K.j2k.io.BinaryDataInput.readByte.html#CSJ2K_j2k_io_BinaryDataInput_readByte">readByte()</a>
        </td>
        <td class="markdown level1 summary"><p>Should read a signed byte (i.e., 8 bit) from the input.  reading, the
input should be realigned at the byte level.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BinaryDataInput_readDouble" data-uid="CSJ2K.j2k.io.BinaryDataInput.readDouble">
          <a class="xref" href="CSJ2K.j2k.io.BinaryDataInput.readDouble.html#CSJ2K_j2k_io_BinaryDataInput_readDouble">readDouble()</a>
        </td>
        <td class="markdown level1 summary"><p>Should read an IEEE double precision (i.e., 64 bit) floating-point
number from the input. Prior to reading, the input should be realigned
at the byte level.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BinaryDataInput_readFloat" data-uid="CSJ2K.j2k.io.BinaryDataInput.readFloat">
          <a class="xref" href="CSJ2K.j2k.io.BinaryDataInput.readFloat.html#CSJ2K_j2k_io_BinaryDataInput_readFloat">readFloat()</a>
        </td>
        <td class="markdown level1 summary"><p>Should read an IEEE single precision (i.e., 32 bit) floating-point
number from the input. Prior to reading, the input should be realigned
at the byte level.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BinaryDataInput_readInt" data-uid="CSJ2K.j2k.io.BinaryDataInput.readInt">
          <a class="xref" href="CSJ2K.j2k.io.BinaryDataInput.readInt.html#CSJ2K_j2k_io_BinaryDataInput_readInt">readInt()</a>
        </td>
        <td class="markdown level1 summary"><p>Should read a signed int (i.e., 32 bit) from the input. Prior to
reading, the input should be realigned at the byte level.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BinaryDataInput_readLong" data-uid="CSJ2K.j2k.io.BinaryDataInput.readLong">
          <a class="xref" href="CSJ2K.j2k.io.BinaryDataInput.readLong.html#CSJ2K_j2k_io_BinaryDataInput_readLong">readLong()</a>
        </td>
        <td class="markdown level1 summary"><p>Should read a signed long (i.e., 64 bit) from the input. Prior to
reading, the input should be realigned at the byte level.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BinaryDataInput_readShort" data-uid="CSJ2K.j2k.io.BinaryDataInput.readShort">
          <a class="xref" href="CSJ2K.j2k.io.BinaryDataInput.readShort.html#CSJ2K_j2k_io_BinaryDataInput_readShort">readShort()</a>
        </td>
        <td class="markdown level1 summary"><p>Should read a signed short (i.e., 16 bit) from the input. Prior to
reading, the input should be realigned at the byte level.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BinaryDataInput_readUnsignedByte" data-uid="CSJ2K.j2k.io.BinaryDataInput.readUnsignedByte">
          <a class="xref" href="CSJ2K.j2k.io.BinaryDataInput.readUnsignedByte.html#CSJ2K_j2k_io_BinaryDataInput_readUnsignedByte">readUnsignedByte()</a>
        </td>
        <td class="markdown level1 summary"><p>Should read an unsigned byte (i.e., 8 bit) from the input. It is
returned as an <tt>int</tt> since Java does not have an unsigned byte
type. Prior to reading, the input should be realigned at the byte
level.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BinaryDataInput_readUnsignedInt" data-uid="CSJ2K.j2k.io.BinaryDataInput.readUnsignedInt">
          <a class="xref" href="CSJ2K.j2k.io.BinaryDataInput.readUnsignedInt.html#CSJ2K_j2k_io_BinaryDataInput_readUnsignedInt">readUnsignedInt()</a>
        </td>
        <td class="markdown level1 summary"><p>Should read an unsigned int (i.e., 32 bit) from the input. It is
returned as a <tt>long</tt> since Java does not have an unsigned short
type. Prior to reading, the input should be realigned at the byte
level.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BinaryDataInput_readUnsignedShort" data-uid="CSJ2K.j2k.io.BinaryDataInput.readUnsignedShort">
          <a class="xref" href="CSJ2K.j2k.io.BinaryDataInput.readUnsignedShort.html#CSJ2K_j2k_io_BinaryDataInput_readUnsignedShort">readUnsignedShort()</a>
        </td>
        <td class="markdown level1 summary"><p>Should read 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>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BinaryDataInput_skipBytes_System_Int32_" data-uid="CSJ2K.j2k.io.BinaryDataInput.skipBytes(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.io.BinaryDataInput.skipBytes.html#CSJ2K_j2k_io_BinaryDataInput_skipBytes_System_Int32_">skipBytes(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Skips <tt>n</tt> bytes from the input. Prior to skipping, the input
should be realigned at the byte level.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="CSJ2K.j2k.io.EndianType.html">EndianType</a></div>
  </div>

</div>
