ues</dd>
<dd><code>java.lang.IllegalStateException</code> - if this Part is obtained
                        from a READ_ONLY folder</dd>
<dd><code><a href="MessagingException.html" title="class in jakarta.mail">MessagingException</a></code> - for other failures</dd>
</dl>
</li>
</ul>
<a id="writeTo(java.io.OutputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeTo</h4>
<pre class="methodSignature">void&nbsp;writeTo&#8203;(java.io.OutputStream&nbsp;os)
      throws java.io.IOE