# CSJ2K.j2k.io.BEBufferedRandomAccessFile

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_j2k_io_BEBufferedRandomAccessFile" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile" class="text-break">BEBufferedRandomAccessFile Class
</h1>
  <div class="markdown level0 summary"><p>This class defines a Buffered Random Access File, where all I/O is
considered to be big-endian. It extends the
<tt>BufferedRandomAccessFile</tt> class.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="CSJ2K.j2k.io.BufferedRandomAccessFile.html">BufferedRandomAccessFile</a></div>
    <div class="level2"><span class="xref">BEBufferedRandomAccessFile</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="CSJ2K.j2k.io.RandomAccessIO.html">RandomAccessIO</a></div>
    <div><a class="xref" href="CSJ2K.j2k.io.BinaryDataInput.html">BinaryDataInput</a></div>
    <div><a class="xref" href="CSJ2K.j2k.io.BinaryDataOutput.html">BinaryDataOutput</a></div>
    <div><a class="xref" href="CSJ2K.j2k.io.EndianType.html">EndianType</a></div>
  </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_BEBufferedRandomAccessFile_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class BEBufferedRandomAccessFile : BufferedRandomAccessFile, RandomAccessIO, BinaryDataInput, BinaryDataOutput, EndianType</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class BEBufferedRandomAccessFile
    Inherits BufferedRandomAccessFile
    Implements RandomAccessIO, BinaryDataInput, BinaryDataOutput, EndianType</code></pre>
  </div>
  <h3 id="constructors">Constructors
</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_BEBufferedRandomAccessFile__ctor_System_Object_System_String_" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.#ctor(System.Object,System.String)">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.-ctor.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile__ctor_System_Object_System_String_">BEBufferedRandomAccessFile(object, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Constructor. Uses the default value for the byte-buffer size (512
bytes).</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BEBufferedRandomAccessFile__ctor_System_Object_System_String_System_Int32_" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.#ctor(System.Object,System.String,System.Int32)">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.-ctor.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile__ctor_System_Object_System_String_System_Int32_">BEBufferedRandomAccessFile(object, string, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Constructor. Always needs a size for the buffer.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BEBufferedRandomAccessFile__ctor_System_String_System_String_" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.#ctor(System.String,System.String)">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.-ctor.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile__ctor_System_String_System_String_">BEBufferedRandomAccessFile(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Constructor. Uses the default value for the byte-buffer size (512
bytes).</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BEBufferedRandomAccessFile__ctor_System_String_System_String_System_Int32_" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.#ctor(System.String,System.String,System.Int32)">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.-ctor.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile__ctor_System_String_System_String_System_Int32_">BEBufferedRandomAccessFile(string, string, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Constructor. Always needs a size for the buffer.</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_BEBufferedRandomAccessFile_ToString" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.ToString">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.ToString.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a string of information about the file and the endianess</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BEBufferedRandomAccessFile_readDouble" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readDouble">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readDouble.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile_readDouble">readDouble()</a>
        </td>
        <td class="markdown level1 summary"><p>Reads 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_BEBufferedRandomAccessFile_readFloat" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readFloat">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readFloat.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile_readFloat">readFloat()</a>
        </td>
        <td class="markdown level1 summary"><p>Reads 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_BEBufferedRandomAccessFile_readInt" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readInt">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readInt.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile_readInt">readInt()</a>
        </td>
        <td class="markdown level1 summary"><p>Reads 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_BEBufferedRandomAccessFile_readLong" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readLong">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readLong.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile_readLong">readLong()</a>
        </td>
        <td class="markdown level1 summary"><p>Reads 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_BEBufferedRandomAccessFile_readShort" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readShort">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readShort.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile_readShort">readShort()</a>
        </td>
        <td class="markdown level1 summary"><p>Reads 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_BEBufferedRandomAccessFile_readUnsignedInt" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readUnsignedInt">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readUnsignedInt.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile_readUnsignedInt">readUnsignedInt()</a>
        </td>
        <td class="markdown level1 summary"><p>Reads 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_BEBufferedRandomAccessFile_readUnsignedShort" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readUnsignedShort">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.readUnsignedShort.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile_readUnsignedShort">readUnsignedShort()</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BEBufferedRandomAccessFile_writeDouble_System_Double_" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.writeDouble(System.Double)">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.writeDouble.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile_writeDouble_System_Double_">writeDouble(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Writes the IEEE double value <tt>v</tt> (i.e., 64 bits) to the
output. Prior to writing, the output should be realigned at the byte
level.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BEBufferedRandomAccessFile_writeFloat_System_Single_" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.writeFloat(System.Single)">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.writeFloat.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile_writeFloat_System_Single_">writeFloat(float)</a>
        </td>
        <td class="markdown level1 summary"><p>Writes the IEEE float value <tt>v</tt> (i.e., 32 bits) to the
output. Prior to writing, the output should be realigned at the byte
level.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BEBufferedRandomAccessFile_writeInt_System_Int32_" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.writeInt(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.writeInt.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile_writeInt_System_Int32_">writeInt(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Writes the int value of <tt>v</tt> (i.e., the 32 bits) to the
output. Prior to writing, the output should be realigned at the byte
level.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BEBufferedRandomAccessFile_writeLong_System_Int64_" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.writeLong(System.Int64)">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.writeLong.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile_writeLong_System_Int64_">writeLong(long)</a>
        </td>
        <td class="markdown level1 summary"><p>Writes the long value of <tt>v</tt> (i.e., the 64 bits) to the
output. Prior to writing, the output should be realigned at the byte
level.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_io_BEBufferedRandomAccessFile_writeShort_System_Int32_" data-uid="CSJ2K.j2k.io.BEBufferedRandomAccessFile.writeShort(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.io.BEBufferedRandomAccessFile.writeShort.html#CSJ2K_j2k_io_BEBufferedRandomAccessFile_writeShort_System_Int32_">writeShort(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Writes the short value of <tt>v</tt> (i.e., 16 least significant bits)
to the output. Prior to writing, the output should be realigned at the
byte level.</p>
<pre><code>       &lt;p&gt;Signed or unsigned data can be written. To write a signed value just
       pass the &lt;tt&gt;short&lt;/tt&gt; value as an argument. To write unsigned data
       pass the &lt;tt&gt;int&lt;/tt&gt; value as an argument (it will be automatically
       casted, and only the 16 least significant bits will be written).&lt;/p&gt;
</code></pre>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="CSJ2K.j2k.io.RandomAccessIO.html">RandomAccessIO</a></div>
      <div><a class="xref" href="CSJ2K.j2k.io.BinaryDataOutput.html">BinaryDataOutput</a></div>
      <div><a class="xref" href="CSJ2K.j2k.io.BinaryDataInput.html">BinaryDataInput</a></div>
      <div><a class="xref" href="CSJ2K.j2k.io.BufferedRandomAccessFile.html">BufferedRandomAccessFile</a></div>
  </div>

</div>
