# CSJ2K.j2k.fileformat.reader.FileFormatReader

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="CSJ2K_j2k_fileformat_reader_FileFormatReader" data-uid="CSJ2K.j2k.fileformat.reader.FileFormatReader" class="text-break">FileFormatReader Class
</h1>
  <div class="markdown level0 summary"><p>This class reads the file format wrapper that may or may not exist around a
valid JPEG 2000 codestream. Since no information from the file format is
used in the actual decoding, this class simply goes through the file and
finds the first valid codestream.</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"><span class="xref">FileFormatReader</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CSJ2K.j2k.fileformat.reader.html">CSJ2K.j2k.fileformat.reader</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ReportViewer.4.6.2.dll</h6>
  <h5 id="CSJ2K_j2k_fileformat_reader_FileFormatReader_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class FileFormatReader</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class FileFormatReader</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_fileformat_reader_FileFormatReader__ctor_CSJ2K_j2k_io_RandomAccessIO_" data-uid="CSJ2K.j2k.fileformat.reader.FileFormatReader.#ctor(CSJ2K.j2k.io.RandomAccessIO)">
          <a class="xref" href="CSJ2K.j2k.fileformat.reader.FileFormatReader.-ctor.html#CSJ2K_j2k_fileformat_reader_FileFormatReader__ctor_CSJ2K_j2k_io_RandomAccessIO_">FileFormatReader(RandomAccessIO)</a>
        </td>
        <td class="markdown level1 summary"><p>The constructor of the FileFormatReader</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="CSJ2K_j2k_fileformat_reader_FileFormatReader_JP2FFUsed" data-uid="CSJ2K.j2k.fileformat.reader.FileFormatReader.JP2FFUsed">
          <a class="xref" href="CSJ2K.j2k.fileformat.reader.FileFormatReader.JP2FFUsed.html">JP2FFUsed</a>
        </td>
        <td class="markdown level1 summary"><p>Flag indicating whether or not the JP2 file format is used</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_fileformat_reader_FileFormatReader_CodeStreamPos" data-uid="CSJ2K.j2k.fileformat.reader.FileFormatReader.CodeStreamPos">
          <a class="xref" href="CSJ2K.j2k.fileformat.reader.FileFormatReader.CodeStreamPos.html#CSJ2K_j2k_fileformat_reader_FileFormatReader_CodeStreamPos">CodeStreamPos</a>
        </td>
        <td class="markdown level1 summary"><p>This method creates and returns an array of positions to contiguous
codestreams in the file</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_fileformat_reader_FileFormatReader_FirstCodeStreamLength" data-uid="CSJ2K.j2k.fileformat.reader.FileFormatReader.FirstCodeStreamLength">
          <a class="xref" href="CSJ2K.j2k.fileformat.reader.FileFormatReader.FirstCodeStreamLength.html#CSJ2K_j2k_fileformat_reader_FileFormatReader_FirstCodeStreamLength">FirstCodeStreamLength</a>
        </td>
        <td class="markdown level1 summary"><p>This method returns the length of the first contiguous codestreams in
the file</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_fileformat_reader_FileFormatReader_FirstCodeStreamPos" data-uid="CSJ2K.j2k.fileformat.reader.FileFormatReader.FirstCodeStreamPos">
          <a class="xref" href="CSJ2K.j2k.fileformat.reader.FileFormatReader.FirstCodeStreamPos.html#CSJ2K_j2k_fileformat_reader_FileFormatReader_FirstCodeStreamPos">FirstCodeStreamPos</a>
        </td>
        <td class="markdown level1 summary"><p>This method returns the position of the first contiguous codestreams in
the file</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_fileformat_reader_FileFormatReader_readContiguousCodeStreamBox_System_Int64_System_Int32_System_Int64_" data-uid="CSJ2K.j2k.fileformat.reader.FileFormatReader.readContiguousCodeStreamBox(System.Int64,System.Int32,System.Int64)">
          <a class="xref" href="CSJ2K.j2k.fileformat.reader.FileFormatReader.readContiguousCodeStreamBox.html#CSJ2K_j2k_fileformat_reader_FileFormatReader_readContiguousCodeStreamBox_System_Int64_System_Int32_System_Int64_">readContiguousCodeStreamBox(long, int, long)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_fileformat_reader_FileFormatReader_readFileFormat" data-uid="CSJ2K.j2k.fileformat.reader.FileFormatReader.readFileFormat">
          <a class="xref" href="CSJ2K.j2k.fileformat.reader.FileFormatReader.readFileFormat.html#CSJ2K_j2k_fileformat_reader_FileFormatReader_readFileFormat">readFileFormat()</a>
        </td>
        <td class="markdown level1 summary"><p>This method checks whether the given RandomAccessIO is a valid JP2 file
and if so finds the first codestream in the file. Currently, the
information in the codestream is not used</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_fileformat_reader_FileFormatReader_readFileTypeBox" data-uid="CSJ2K.j2k.fileformat.reader.FileFormatReader.readFileTypeBox">
          <a class="xref" href="CSJ2K.j2k.fileformat.reader.FileFormatReader.readFileTypeBox.html#CSJ2K_j2k_fileformat_reader_FileFormatReader_readFileTypeBox">readFileTypeBox()</a>
        </td>
        <td class="markdown level1 summary"><p>This method reads the File Type box.</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_fileformat_reader_FileFormatReader_readIntPropertyBox_System_Int32_" data-uid="CSJ2K.j2k.fileformat.reader.FileFormatReader.readIntPropertyBox(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.fileformat.reader.FileFormatReader.readIntPropertyBox.html#CSJ2K_j2k_fileformat_reader_FileFormatReader_readIntPropertyBox_System_Int32_">readIntPropertyBox(int)</a>
        </td>
        <td class="markdown level1 summary"><p>This method reads the contents of the Intellectual property box</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_fileformat_reader_FileFormatReader_readJP2HeaderBox_System_Int64_System_Int32_System_Int64_" data-uid="CSJ2K.j2k.fileformat.reader.FileFormatReader.readJP2HeaderBox(System.Int64,System.Int32,System.Int64)">
          <a class="xref" href="CSJ2K.j2k.fileformat.reader.FileFormatReader.readJP2HeaderBox.html#CSJ2K_j2k_fileformat_reader_FileFormatReader_readJP2HeaderBox_System_Int64_System_Int32_System_Int64_">readJP2HeaderBox(long, int, long)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_fileformat_reader_FileFormatReader_readReaderRequirementsBox_System_Int32_" data-uid="CSJ2K.j2k.fileformat.reader.FileFormatReader.readReaderRequirementsBox(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.fileformat.reader.FileFormatReader.readReaderRequirementsBox.html#CSJ2K_j2k_fileformat_reader_FileFormatReader_readReaderRequirementsBox_System_Int32_">readReaderRequirementsBox(int)</a>
        </td>
        <td class="markdown level1 summary"><p>This method reads the contents of the Reader requirements box</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_fileformat_reader_FileFormatReader_readUUIDBox_System_Int32_" data-uid="CSJ2K.j2k.fileformat.reader.FileFormatReader.readUUIDBox(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.fileformat.reader.FileFormatReader.readUUIDBox.html#CSJ2K_j2k_fileformat_reader_FileFormatReader_readUUIDBox_System_Int32_">readUUIDBox(int)</a>
        </td>
        <td class="markdown level1 summary"><p>This method reads the contents of the Intellectual property box</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_fileformat_reader_FileFormatReader_readUUIDInfoBox_System_Int32_" data-uid="CSJ2K.j2k.fileformat.reader.FileFormatReader.readUUIDInfoBox(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.fileformat.reader.FileFormatReader.readUUIDInfoBox.html#CSJ2K_j2k_fileformat_reader_FileFormatReader_readUUIDInfoBox_System_Int32_">readUUIDInfoBox(int)</a>
        </td>
        <td class="markdown level1 summary"><p>This method reads the contents of the Intellectual property box</p>
</td>
      </tr>
      <tr>
        <td id="CSJ2K_j2k_fileformat_reader_FileFormatReader_readXMLBox_System_Int32_" data-uid="CSJ2K.j2k.fileformat.reader.FileFormatReader.readXMLBox(System.Int32)">
          <a class="xref" href="CSJ2K.j2k.fileformat.reader.FileFormatReader.readXMLBox.html#CSJ2K_j2k_fileformat_reader_FileFormatReader_readXMLBox_System_Int32_">readXMLBox(int)</a>
        </td>
        <td class="markdown level1 summary"><p>This method reads the contents of the XML box</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
