/api/java.base/java/io/Writer.html#write(java.lang.String)" title="class or interface in java.io" class="external-link"><code>Writer.write(java.lang.String)</code></a> .
 </p>

 <div class="changed_added_2_2">

 <p>
 The implementation makes no checks if this is the correct place in the response to have a doctype, nor does it
 prevent the doctype from being written more than once.
 </p>

 </div></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>doctype</code> - Text content of the doctype</dd>
<dt>Thr