# CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.createInstance

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_codestream_reader_BitstreamReaderAgent_createInstance_" data-uid="CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.createInstance*">createInstance Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_codestream_reader_BitstreamReaderAgent_createInstance_" data-uid="CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.createInstance*"></a>
<h4 id="CSJ2K_j2k_codestream_reader_BitstreamReaderAgent_createInstance_CSJ2K_j2k_io_RandomAccessIO_CSJ2K_j2k_codestream_reader_HeaderDecoder_CSJ2K_j2k_util_ParameterList_CSJ2K_j2k_decoder_DecoderSpecs_System_Boolean_CSJ2K_j2k_codestream_HeaderInfo_" data-uid="CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.createInstance(CSJ2K.j2k.io.RandomAccessIO,CSJ2K.j2k.codestream.reader.HeaderDecoder,CSJ2K.j2k.util.ParameterList,CSJ2K.j2k.decoder.DecoderSpecs,System.Boolean,CSJ2K.j2k.codestream.HeaderInfo)">createInstance(RandomAccessIO, HeaderDecoder, ParameterList, DecoderSpecs, bool, HeaderInfo)</h4>
<div class="markdown level1 summary"><p>Creates a bit stream reader of the correct type that works on the
provided RandomAccessIO, with the special parameters from the parameter
list.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static BitstreamReaderAgent createInstance(RandomAccessIO in_Renamed, HeaderDecoder hd, ParameterList pl, DecoderSpecs decSpec, bool cdstrInfo, HeaderInfo hi)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function createInstance(in_Renamed As RandomAccessIO, hd As HeaderDecoder, pl As ParameterList, decSpec As DecoderSpecs, cdstrInfo As Boolean, hi As HeaderInfo) As BitstreamReaderAgent</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.io.RandomAccessIO.html">RandomAccessIO</a></td>
      <td><span class="parametername">in_Renamed</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.codestream.reader.HeaderDecoder.html">HeaderDecoder</a></td>
      <td><span class="parametername">hd</span></td>
      <td><p>Header of the codestream.</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 parameter list containing parameters applicable to the
bit stream read (other parameters may also be present).</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="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><p>Reference to the HeaderInfo instance.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.html">BitstreamReaderAgent</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
