# CSJ2K.j2k.codestream.writer.FileCodestreamWriter.commitBitstreamHeader

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_codestream_writer_FileCodestreamWriter_commitBitstreamHeader_" data-uid="CSJ2K.j2k.codestream.writer.FileCodestreamWriter.commitBitstreamHeader*">commitBitstreamHeader Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_codestream_writer_FileCodestreamWriter_commitBitstreamHeader_" data-uid="CSJ2K.j2k.codestream.writer.FileCodestreamWriter.commitBitstreamHeader*"></a>
<h4 id="CSJ2K_j2k_codestream_writer_FileCodestreamWriter_commitBitstreamHeader_CSJ2K_j2k_codestream_writer_HeaderEncoder_" data-uid="CSJ2K.j2k.codestream.writer.FileCodestreamWriter.commitBitstreamHeader(CSJ2K.j2k.codestream.writer.HeaderEncoder)">commitBitstreamHeader(HeaderEncoder)</h4>
<div class="markdown level1 summary"><p>Writes the header data in the codestream and actualize ndata with the
header length. The header is either a MainHeaderEncoder or a
TileHeaderEncoder.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override void commitBitstreamHeader(HeaderEncoder he)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Sub commitBitstreamHeader(he As HeaderEncoder)</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.writer.HeaderEncoder.html">HeaderEncoder</a></td>
      <td><span class="parametername">he</span></td>
      <td><p>The current header encoder.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="CSJ2K.j2k.codestream.writer.CodestreamWriter.commitBitstreamHeader.html#CSJ2K_j2k_codestream_writer_CodestreamWriter_commitBitstreamHeader_CSJ2K_j2k_codestream_writer_HeaderEncoder_">CodestreamWriter.commitBitstreamHeader(HeaderEncoder)</a></div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.ioexception">IOException</a></td>
      <td><p>If an I/O error occurs while writing the data.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
