# CSJ2K.j2k.codestream.reader.FileBitstreamReaderAgent.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_codestream_reader_FileBitstreamReaderAgent__ctor_" data-uid="CSJ2K.j2k.codestream.reader.FileBitstreamReaderAgent.#ctor*">FileBitstreamReaderAgent Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_codestream_reader_FileBitstreamReaderAgent__ctor_" data-uid="CSJ2K.j2k.codestream.reader.FileBitstreamReaderAgent.#ctor*"></a>
<h4 id="CSJ2K_j2k_codestream_reader_FileBitstreamReaderAgent__ctor_CSJ2K_j2k_codestream_reader_HeaderDecoder_CSJ2K_j2k_io_RandomAccessIO_CSJ2K_j2k_decoder_DecoderSpecs_CSJ2K_j2k_util_ParameterList_System_Boolean_CSJ2K_j2k_codestream_HeaderInfo_" data-uid="CSJ2K.j2k.codestream.reader.FileBitstreamReaderAgent.#ctor(CSJ2K.j2k.codestream.reader.HeaderDecoder,CSJ2K.j2k.io.RandomAccessIO,CSJ2K.j2k.decoder.DecoderSpecs,CSJ2K.j2k.util.ParameterList,System.Boolean,CSJ2K.j2k.codestream.HeaderInfo)">FileBitstreamReaderAgent(HeaderDecoder, RandomAccessIO, DecoderSpecs, ParameterList, bool, HeaderInfo)</h4>
<div class="markdown level1 summary"><p>Reads all tiles headers and keep offset of their first
packet. Finally it calls the rate allocation method.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FileBitstreamReaderAgent(HeaderDecoder hd, RandomAccessIO ehs, DecoderSpecs decSpec, ParameterList pl, bool cdstrInfo, HeaderInfo hi)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(hd As HeaderDecoder, ehs As RandomAccessIO, decSpec As DecoderSpecs, pl As ParameterList, cdstrInfo As Boolean, hi As HeaderInfo)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.codestream.reader.HeaderDecoder.html">HeaderDecoder</a></td>
      <td><span class="parametername">hd</span></td>
      <td><p>HeaderDecoder of the codestream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.io.RandomAccessIO.html">RandomAccessIO</a></td>
      <td><span class="parametername">ehs</span></td>
      <td><p>The input stream where to read bit-stream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.decoder.DecoderSpecs.html">DecoderSpecs</a></td>
      <td><span class="parametername">decSpec</span></td>
      <td><p>The decoder specifications</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.util.ParameterList.html">ParameterList</a></td>
      <td><span class="parametername">pl</span></td>
      <td><p>The ParameterList instance created from the
command-line arguments.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">cdstrInfo</span></td>
      <td><p>Whether or not to print information found in
codestream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.codestream.HeaderInfo.html">HeaderInfo</a></td>
      <td><span class="parametername">hi</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="CSJ2K_j2k_codestream_reader_FileBitstreamReaderAgent__ctor_CSJ2K_j2k_codestream_reader_HeaderDecoder_CSJ2K_j2k_io_RandomAccessIO_CSJ2K_j2k_decoder_DecoderSpecs_CSJ2K_j2k_util_ParameterList_System_Boolean_CSJ2K_j2k_codestream_HeaderInfo__seealso">See Also</h5>
<div class="seealso">
    <div><span class="xref">CSJ2K.j2k.codestream.reader.FileBitstreamReaderAgent.allocateRate</span></div>
</div>
</div>
