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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_codestream_reader_BitstreamReaderAgent__ctor_" data-uid="CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.#ctor*">BitstreamReaderAgent Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_codestream_reader_BitstreamReaderAgent__ctor_" data-uid="CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.#ctor*"></a>
<h4 id="CSJ2K_j2k_codestream_reader_BitstreamReaderAgent__ctor_CSJ2K_j2k_codestream_reader_HeaderDecoder_CSJ2K_j2k_decoder_DecoderSpecs_" data-uid="CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.#ctor(CSJ2K.j2k.codestream.reader.HeaderDecoder,CSJ2K.j2k.decoder.DecoderSpecs)">BitstreamReaderAgent(HeaderDecoder, DecoderSpecs)</h4>
<div class="markdown level1 summary"><p>Initializes members of this class. This constructor takes a
HeaderDecoder object. This object must be initialized by the
constructor of the implementing class from the header of the bit
stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected BitstreamReaderAgent(HeaderDecoder hd, DecoderSpecs decSpec)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(hd As HeaderDecoder, decSpec As DecoderSpecs)</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>The decoded header of the bit stream from where to initialize
the values.</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>
  </tbody>
</table>
</div>
